Skip to content
Snippets Groups Projects
Commit 42d6899e authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Bug fix: correct name of argument

The global variable was used in the body of the function.
parent d4047e92
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ def calculate_radii_rossby(properties): ...@@ -55,7 +55,7 @@ def calculate_radii_rossby(properties):
if n_valid_Rossby != 0: avg_Rossby /= n_valid_Rossby if n_valid_Rossby != 0: avg_Rossby /= n_valid_Rossby
return avg_rad, avg_Rossby return avg_rad, avg_Rossby
def get_slice(array_d_ini, date_index): def get_slice(array_d_init, date_index):
i_slice = bisect.bisect(array_d_init, date_index) - 1 i_slice = bisect.bisect(array_d_init, date_index) - 1
assert i_slice >= 0 assert i_slice >= 0
return i_slice return i_slice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment