From 6a05ed585d34c4b823ffbebfdecc67c8521473e5 Mon Sep 17 00:00:00 2001 From: aderrien7 Date: Fri, 30 Aug 2024 13:42:12 +0000 Subject: [PATCH] Removing comments in the code --- docs/papermill_launcher.ipynb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docs/papermill_launcher.ipynb b/docs/papermill_launcher.ipynb index 7b3a7b9..7075fa9 100644 --- a/docs/papermill_launcher.ipynb +++ b/docs/papermill_launcher.ipynb @@ -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", " " @@ -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",