Skip to content
Snippets Groups Projects
  1. Sep 02, 2021
    • Lionel GUEZ's avatar
      Add arguments X, Y, ADT to function write · 28afccf5
      Lionel GUEZ authored
      Instead of using values of global variable `matlab_data` inside the
      function write. This is clearer. Especially since we already had an
      argument of write, cell, which is a value of `matlab_data`.
      28afccf5
  2. Jul 01, 2021
  3. Jun 22, 2021
  4. Jun 04, 2021
  5. May 25, 2021
  6. May 17, 2021
    • Lionel GUEZ's avatar
      Use subprocess instead of pty · d5754c38
      Lionel GUEZ authored
      Much simpler and more robust. This should also ease submitting the
      script to a batch scheduler. And we can now check the return code of
      Matlab.
      d5754c38
    • Lionel GUEZ's avatar
      Use option `-batch` · 88ec00d5
      Lionel GUEZ authored
      Take advantage of version 2019 of Matlab now available on Ciclad,
      which has option `-batch`. This clears the output and opens the way to
      subprocess instead of `pty.spawn`.
      88ec00d5
  7. Apr 30, 2021
  8. Apr 29, 2021
  9. Apr 03, 2021
    • Lionel GUEZ's avatar
      Bug fix: convert polyline to list · 6c850f50
      Lionel GUEZ authored
      Method poly of shapefile writer requires a list of lists, not a list
      of numpy arrays. This bug goes unnoticed in pyshp `2.1.0` but raises an
      exception with pyshp `2.1.3`.
      6c850f50
  10. Apr 02, 2021
  11. Mar 10, 2021
  12. Mar 09, 2021
  13. Mar 04, 2021
    • Lionel GUEZ's avatar
      Manage missing dates · 7a48e5fd
      Lionel GUEZ authored
      We just write a line in `ishape_last.txt`. Note that we cannot catch
      the error, which occurs inside Matlab, so we have to test for file
      existence beforehand.
      7a48e5fd
  14. Mar 03, 2021
  15. Feb 23, 2021
    • Lionel GUEZ's avatar
      Polish · 07870a84
      Lionel GUEZ authored
      07870a84
    • Lionel GUEZ's avatar
      Convert the mat file to v6 from inside Python · 59b96d45
      Lionel GUEZ authored
      Call the Matlab script from the Python script. We cannot do this with
      subprocess because Matlab requires a terminal. With subprocess, the
      Matlab script complains: "inappropriate ioctl for device". Note that
      we cannot test that the Matlab script worked normally because it exit
      with code 0 regardless: the exit instruction returns code 0.
      
      The idea here is that we do not want to store the converted v6 mat files.
      59b96d45
    • Lionel GUEZ's avatar
      Polish · d3f2dfea
      Lionel GUEZ authored
      d3f2dfea
  16. Feb 18, 2021
  17. Feb 16, 2021
  18. Feb 15, 2021
Loading