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

Rename function `days_1950` to `to_days_1950`

parent 3964a833
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ import sys ...@@ -12,7 +12,7 @@ import sys
import json import json
import datetime import datetime
def days_1950(date_num): def to_days_1950(date_num):
"""Convert Matlab serial date number to number of days since Jan 1st """Convert Matlab serial date number to number of days since Jan 1st
1950. 1950.
...@@ -35,7 +35,7 @@ n_dates = n_eddies.size ...@@ -35,7 +35,7 @@ n_dates = n_eddies.size
print("n_dates =", n_dates) print("n_dates =", n_dates)
e_overestim = id_child.shape[0] e_overestim = id_child.shape[0]
print("e_overestim =", e_overestim) print("e_overestim =", e_overestim)
d_init = days_1950(date_num[0]) d_init = to_days_1950(date_num[0])
with open("node_id_param.json", "w") as f: with open("node_id_param.json", "w") as f:
json.dump({"e_overestim": e_overestim, "d_init": d_init}, f) json.dump({"e_overestim": e_overestim, "d_init": d_init}, f)
......
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