Skip to content
Snippets Groups Projects
Commit 5531a5d0 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

force str to int for max_clouds value

parent a8eeb429
No related branches found
No related tags found
No related merge requests found
Pipeline #1480 passed
...@@ -459,6 +459,8 @@ class Job: ...@@ -459,6 +459,8 @@ class Job:
for index, row in tasks.iterrows(): for index, row in tasks.iterrows():
if not row.max_clouds: if not row.max_clouds:
tasks.at[index, "max_clouds"] = 100 tasks.at[index, "max_clouds"] = 100
else:
tasks.at[index, "max_clouds"] = int(tasks.at[index, "max_clouds"])
if not row.date_min: if not row.date_min:
# self.tasks.at[index, "start_time"] = (datetime.datetime.now()-datetime.timedelta(days=delta_t)).strftime('%Y-%m-%d') # self.tasks.at[index, "start_time"] = (datetime.datetime.now()-datetime.timedelta(days=delta_t)).strftime('%Y-%m-%d')
tasks.at[index, "date_min"] = datetime.datetime.strptime( tasks.at[index, "date_min"] = datetime.datetime.strptime(
......
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