DataAplose simplification#103
Conversation
|
I also updated the utils script names, got rid of "_utils" example: from post_processing.utils import glider |
|
I also (finally) renamed the package to |
|
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() |
|
I have an issue when building a DataAplose from a configuration containing multiple concatenated files. Calling I’m not sure what the intended behavior should be here:
|
|
The |
|
@MaelleTtrt I have fixed Also, i have created a |
|
While we're at it, i changed every mention of |
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