Skip to content

Commit

Permalink
Removing comments in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
aderrien7 committed Aug 30, 2024
1 parent 28c978b commit 6a05ed5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docs/papermill_launcher.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,17 @@
"```\n",
"observation_length = (recapture_date - release_date) / np.timedelta64(1, \"D\")\n",
"\n",
"if (\n",
" (tag_name not in nbs) and observation_length > 2\n",
"): # Use this statement if you already start a computation that has been interrupted but the generation is still valid\n",
" # if time_difference > 2: # Use this if you want every tag in tag list to be processed\n",
"if ((tag_name not in nbs) and observation_length > 2): \n",
"```\n",
"First, it means that if the fish, based on the tagging events, has a observation period of less than two days, his trajectory will not be computed.\n",
"Second, It means that you can either choose to regenerate for all the tags that you generated once if you noticed that there was an issue in the results.\n",
"If the generation was interrupted during the process but the results are valid, you can start back you computation where it has stopped.\n",
"\n",
"You might need to update this line of to switch from one behaviour to another, by removing \n",
"```\n",
"(tag_name not in nbs) and\n",
"```\n",
"from this statement.\n",
"- The code loops over the tag id present in tag list and calculates the time difference in the tagging events.\n",
"- If it succeds, the generated notebook is placed papermill_output/done, else, it goes at papermill_output/failed\n",
" "
Expand Down Expand Up @@ -235,11 +237,8 @@
" )\n",
" observation_length = (recapture_date - release_date) / np.timedelta64(1, \"D\")\n",
"\n",
" if (\n",
" (tag_name not in nbs) and observation_length > 2\n",
" ): # Use this statement if you already start a computation that has been interrupted but the generation is still valid\n",
" # if time_difference > 2: # Use this if you want every tag in tag list to be processed\n",
"\n",
" if ((tag_name not in nbs) and observation_length > 2): \n",
" \n",
" print(tag_name)\n",
" print(datetime.now(timezone).strftime(\"%Y-%m-%d %H:%M:%S\"))\n",
" param[\"tag_name\"] = tag_name\n",
Expand Down

0 comments on commit 6a05ed5

Please sign in to comment.