-
Notifications
You must be signed in to change notification settings - Fork 188
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
The aiida_local_code_factory
fixture is badly named
#5214
Comments
I would go for In general, the concept of Edit: We once asked on the AiiDA mailing list and nobody replied 4 years ago I still argued that storing codes in AiiDA could help to preserve provenance... but if nobody uses it this way, then I think we better remove it since it just makes our life more complicated. |
Thanks for the info @ltalirz . I feel that a big part of the problems arise due to the design of a single class The project on adding support for containerised codes (see this open AEP) most likely will also have to add the concept of a If it is possible, it would maybe be better to keep the concept around, but well separated and use v2.0 to allow some potentially necessary breaking changes. We can then have some more time to keep it around (I do think there are some usecases for it outside of materials science) but if it really proves useless, dropping it in the future will be easy. |
Thanks, your suggestion sounds like a very good way forward to me (better than dropping support entirely). |
Just mentioning there was yet another case of someone being confused by the naming https://github.com/aiidateam/aiida-core/discussions/5347#discussioncomment-2203310 |
This was fixed by #6341 |
It actually creates a "remote" code and not a "local" code. It probably was named this because the "remote" computer is
localhost
, but it is confusing nonetheless. I wanted to make a similar fixture to create a local code, but that would clearly lead to confusion. I would change to one of the following:aiida_code_factory
and make the type an argument, defaulting to "remote"aiida_remote_code_factory
and makingaiida_local_code_factory
actually create a "local" codeI think option 1) is preferable since it also allows to easily deprecate the current method. Only downside is that I am not sure what the
type
argument should take as a type. The simplest would be a simple string"remote"
or"local"
but that is kind of ugly. An enum would be better, but then you would have to import this again in order to change the default.The text was updated successfully, but these errors were encountered: