Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I modified the code to separate recording effort into two components:
1 - Effective recording effort – the periods during which the recorder is actually recording underwater. This is usefull to shade the background of the Figures when there is no effort at all
2-Partial recording effort – takes into account duty cycles or incomplete weeks of recording.
For now, the focus is on adding the effective recording effort, which is currently used only in the histogram plot type.
How it works
You need a CSV file (to be replaced soon by a JSON from Metadatax) containing four columns:
"start_recording", "end_recording", "start_deployment", "end_deployment"Dates should be in this format:
"2022-08-03T12:37:00+0000"Specify the path to this CSV in your YAML configuration:
Create the RecordingPeriod object:
Then, pass it to your plot call: