- May 18, 2022
-
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
This is a new reversion in a series of reversions. See commit 836392d7. The idea now is to allow us to run a single test in a series, taking advantage of the archive option in recent versions of `test_compare.py`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
We are in the else branch of `if src.out_degree() > 1` and src is the source of an edge so `src.out_degree()` must be 1.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- May 17, 2022
-
-
Lionel GUEZ authored
Correct name of property from `segment` to `inst_eddies`.
-
Lionel GUEZ authored
Correct name of property from `nl_cost_function` to `cost_function`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
- Apr 29, 2022
-
-
Lionel GUEZ authored
The maximum speed contour may not be defined separately from the outermost contour. So if the radius from the maximum speed contour shapefile is not defined, use the radius from the outermost contour shapefile.
-
Lionel GUEZ authored
Motivation: performance. We eliminate repeated reading of the same information from the shapefiles. If the length of the segment is smaller than 14 days then we re-use for the last part of the segment some of the properties from the first part. Also, we do not compute properties for the first part of the segment if the segment has no predecessor and for the last part of the segment if the segment has no successor.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Remove intermediary variables `avg_rad` and `avg_Rossby`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
We extract part of function `calculate_radii_rossby` into new function `node_to_prop`. So we now separate reading data from the shapefiles and computing the average radius and Rossby number. Thus, we prepare for rewriting the algorithm in the main part of the script. The quantity of reading is still the same, for now.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Rename variable `num_of_days_to_avg` to `n_days_avg`.
-
Lionel GUEZ authored
This allows readability of the property in graphml format. As vector of double is more specific than python object, I suspect this commit also makes the code more efficient. See also commit c7f7fd46.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Return a tuple from function `calculate_radii_rossby` instead of a dictionary.
-
Lionel GUEZ authored
The vertex property `avg_Rossby` was never set after `n_valid_Rossby == 0`. It appears that it had then a default value of 0. Better to explicitly set it to 0.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Rename radii and rossby to `avg_rad` and `avg_Rossby`.
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
-
Lionel GUEZ authored
Add tests for a case where the speed is not defined on a whole segment.
-