Skip to content
Snippets Groups Projects
  1. Nov 28, 2023
    • Lionel GUEZ's avatar
      Follow PEP 8 - Code lay-out - Imports · 83f9fb34
      Lionel GUEZ authored
      83f9fb34
    • Lionel GUEZ's avatar
      Move functions to `util_eddies.py` · af3e3abd
      Lionel GUEZ authored
      Move functions `node_to_date_eddy` and `date_eddy_to_node` from script
      `report_graph.py` to script `util_eddies.py`. `util_eddies.py`
      contains more basic functions, it only imports
      shapefile. `report_graph.py` imports networkx. It was not convenient
      nor meaningful to require networkx for scripts that use
      `node_to_date_eddy` or `date_eddy_to_node`.
      af3e3abd
    • Lionel GUEZ's avatar
      Do not append to path · d3f911de
      Lionel GUEZ authored
      Useless: there is a symlink to `util_eddies.py` in directory Overlap
      since commit 56ca8ea3.
      d3f911de
  2. Jul 27, 2022
    • Lionel GUEZ's avatar
      Assume "{shpc_dir}/{orientation}/Slice_{slice}" · 789b6dbc
      Lionel GUEZ authored
      Assume that a slice is in a directory
      "{shpc_dir}/{orientation}/Slice_{slice}" where shpc_dir can be any
      name, orientation is "Anticyclones" or "Cyclones" and slice is an
      integer. Do not read or create any longer a file "orientation.txt" in
      the slice directory. Add procedure `get_slice_dir`. Add dummy
      arguments cyclone and slice to procedure `shpc_open`. Add dummy
      argument slice to procedure `shpc_create`.
      789b6dbc
  3. Jul 04, 2022
  4. Apr 28, 2022
  5. Apr 26, 2022
    • Lionel GUEZ's avatar
      Return tuple or scalar from `node_to_date_eddy` · 1aec1712
      Lionel GUEZ authored
      Return tuple or scalar from function `node_to_date_eddy`, depending on
      new argument `only_date`, instead of returning a dictionary. The
      function is easier to use. Also, it saves a useless computation if we
      are only interested in the date index. Returning a dictionary was more
      justified before commit 43d2eff6, we we also returned the date.
      1aec1712
  6. Apr 19, 2022
  7. Jan 04, 2022
  8. Dec 14, 2021
  9. Jul 19, 2021
  10. Jul 02, 2021
  11. Jul 01, 2021
  12. Jun 22, 2021
  13. Jun 15, 2021
  14. May 25, 2021
  15. May 20, 2021
  16. Mar 11, 2021
  17. Feb 12, 2021
  18. Feb 05, 2021
    • Lionel GUEZ's avatar
      Polish · e1743a2e
      Lionel GUEZ authored
      e1743a2e
    • Lionel GUEZ's avatar
      Add time option · fae8de64
      Lionel GUEZ authored
      Print time measurements only when time option is
      activated. Motivation: we need reproducibility for the automated test.
      fae8de64
    • Lionel GUEZ's avatar
      Add option save · 92bc155d
      Lionel GUEZ authored
      For the test of the script in `tests.json`. Normally, we would save to
      pdf, but pdf format includes a date stamp. So pdf is not convenient
      for testing. So we include the format value in argument save and we
      save to png for the automated test.
      92bc155d
  19. Feb 04, 2021
  20. Feb 03, 2021
  21. Jan 06, 2021
    • Lionel GUEZ's avatar
      Add timings · 3db476e7
      Lionel GUEZ authored
      3db476e7
    • Lionel GUEZ's avatar
      Bug fix: adapt the central longitude · ca88694a
      Lionel GUEZ authored
      Adapt the central longitude of the projection, depending on window or
      position of chosen node. Else we can have arrows crossing the whole projection.
      ca88694a
    • Lionel GUEZ's avatar
      Polish · 3c67d186
      Lionel GUEZ authored
      3c67d186
    • Lionel GUEZ's avatar
      Plot all components intersecting window · 45f68732
      Lionel GUEZ authored
      With window option, the script used to plot all components in the
      subgraph containing the nodes in the window. So the components stopped
      at nodes inside the window. Now we do better: we plot all the
      components intersecting the window. These components may extend beyond
      the window. This is in particular better if a component has a
      connecting part outside of the window. In the old script, this
      component would have been plotted as two components.
      
      We achieve this by adding components intersecting the window in the
      `component_list` attribute of the graph. And we modify the function
      `plot_all_components`: it no longer calls
      `nx.weakly_connected_components`: it just plots all the components in
      `component_list`.
      
      We only call `nx.weakly_connected_components` through the function
      `assign_all_components` if the script is run without the window or
      node options.
      45f68732
Loading