DataAplose simplification#103
Open
mathieudpnt wants to merge 7 commits into
Open
Conversation
Collaborator
Author
|
I also updated the utils script names, got rid of "_utils" example: from post_processing.utils import glider |
Collaborator
Author
|
I also (finally) renamed the package to |
Collaborator
Author
|
and finally i update config ={
"detection_file": Path(...),
"filename_format": "...",
"recording_file": Path(...),
}
data= DataAplose.from_dict(config)
fig, ax = plt.subplots(1, 1)
ax = data.set_ax(...)
data.plot(
...
effort=True,
)
plt.tight_layout()
plt.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 simplified the process, now user only has to declare a dict of arguments and use
DataAplosefrom_dictmethod. The rest of the process should remain the same.Example:
configcan be either a dict or a list of dict.A dict must contains the following arguments:
detection_file: Path -> path to an APLOSE-formatted result csv filefilename_format: str -> string to parse datetimes from filename column from the detection fileOthers non-mandatory arguments can be given:
timebin_new: Timedelta | None = Nonestart_datetime: Timestamp | None = Noneend_datetime: Timestamp | None = Noneannotator: str | list[str] | None = Noneannotation: str | list[str] | None = Nonetype: str | None = Nonerecording_file: Path | None = Noneuser_selection: str = "all"min_frequency: float | None = Nonemax_frequency: float | None = Noneconfidence: float | None = None