-
Notifications
You must be signed in to change notification settings - Fork 4
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
available vs generated data #29
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR, @leclairm! Looks fine to me. Just added one minor comment.
In addition, I think we should still have a way to denote if a data entry lives on the local machine, irrespective if it's available
or generated
. It could be via type='remote'
, even though, one then loses the file
/dir
specification for the type. However, as I mentioned in my comment in issue #28, this actually doesn't matter for AiiDA, and I'm not sure if we really use the information somewhere else in the code. I further assume generated
would basically always be on the remote HPC?
As this isn't addressed in this PR, I'll work on it locally (and have already been), and will open another PR.
Yes, let's keep that for the separate discussion. |
@agoscinski you can check if everything is fine now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also adapt the test_config_small.yml
? Most formatting issues should be fixed automatically with hatch fmt
.
What is ruff trying to tell me with this?
|
You can always look up the code def __init__(
self,
name: str,
type: str, # noqa: A002
src: str,
lag: list[Duration],
date: list[datetime],
arg_option: str | None,
*
available: bool,
): I actually thought at some point to enforce keyword argument usage to every input argument to increase readability. But that we can do another time. |
done |
did it for |
Also remove is_available_on_init method (the whole point...)
a37de95
to
fd2ea7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank for the work. Could you squash merge with a commit message like this?
Introduce keywords that distinguish data that is available on init and not in yml file (#29)
We introduce the keywords `available` and `generated` in the yml file that
specify if the data exists already on initialization or is generated by the
workflow. Before that we needed to refer this from how the data is used in the
workflow. We decided to let the user specify this for better error control
handling. Implements suggestion from issue #28
No description provided.