Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple Model classes from file management #15

Conversation

pabloitu
Copy link
Collaborator

@pabloitu pabloitu commented Aug 5, 2024

closes #10

@pabloitu pabloitu linked an issue Aug 5, 2024 that may be closed by this pull request
6 tasks
@pabloitu pabloitu force-pushed the 10-decouple-model-classes-from-accessors-readers-and-fileartifact-management branch from 8755aab to 673f9d8 Compare August 10, 2024 00:01
…s/storage. Models have a flag to re-stage.

refac: Renamed ModelTree as ForecastRegistry and PathTree as ExperimentRegistry. Moved .dir() method to ForecastRegistry. Decoupled the get_source from the directory creation, which is now inside the model class. Removed dataclasses from Registries. Removed __call__ override for registry classes and replaced them with get_path(). Created an abc BaseFileRegistry, from which ExperimentRegistry and ForecastRegistry inherits. Removed query_gcmt, as it was included in pycsep. Renamed iter_attr() from Experiment.as_dict() to parse_nested_dict, and moved to utils.py.
sty: used black and pydocstringformatter in main modules.
build: Added pydocstringformatter options to .toml.
tests: updated all unit tests with the new classes.
fix: conda manager prints output live to shell.
@pabloitu pabloitu force-pushed the 10-decouple-model-classes-from-accessors-readers-and-fileartifact-management branch from 673f9d8 to 334c461 Compare August 10, 2024 00:19
@pabloitu pabloitu merged commit 334c461 into main Aug 10, 2024
7 checks passed
@pabloitu pabloitu deleted the 10-decouple-model-classes-from-accessors-readers-and-fileartifact-management branch August 10, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decouple model classes from accessors, readers and file/artifact management
1 participant