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

Fuse classes for wait_on tasks and input data #56

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Conversation

leclairm
Copy link
Contributor

@leclairm leclairm commented Nov 29, 2024

Fuse classes for wait_on tasks and input data as they use the exact same keywords for the same purpose, namely targeting other nodes when building the graph.

Also reorder the classes in _yaml_data_models.py so that they correspond more to the order in the example yaml files (even though this order is just a convention and can be changed by the users without consequences)

class _LagDateBaseModel(BaseModel):
"""Base class for all classes containg a list of dates or time lags."""
class TargetNodesBaseModel(_NamedBaseModel):
"""class for targetting other task or data nodes in the graph"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this a bit more in the docstring? Reading it, it is not so clear for me

Copy link
Collaborator

@agoscinski agoscinski Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this. But I am also not really happy with this

Suggested change
"""class for targetting other task or data nodes in the graph"""
"""Class for specifying time information relative to the cycle date, and
information related to the parametrization. """

I hope when we move to a release it becomes clearer how to describe this class.

@leclairm leclairm merged commit 4d4e501 into main Dec 2, 2024
3 checks passed
@leclairm leclairm deleted the cleanup_parsing branch December 2, 2024 12: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.

2 participants