-
Notifications
You must be signed in to change notification settings - Fork 16
Rename imaspy to imas #6
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
Rename imaspy to imas #6
Conversation
maarten-ic
left a comment
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.
Hi Prasad,
That must have been quite some work! I've had a quick look at the changes, and overall it looks good. There are a couple of things that we should think about a bit better, summarized below:
-
IMASPy had some logic and content related to the legacy
imasinterface. Mainly in the benchmarking, tests and training material. IMO this logic and content should be removed. For one, it is technically impossible to have both the legacy andimaspyinterfaces loaded after this change (since both will use theimaspackage name). And second, it will confuse newcomers that don't have access to the legacy interface.I'd suggest to review all files that come up with the following command (on the current
developbranch):imas-python$ git grep -P '(\W|^)imas(\W|$)' -
Should we actually rename the python module
imaspy->imas? The API is not 100% compatible with the legacyimasinterface (and will never be). If we renameimaspy->imas, the transition for existing codes will probably be more painful than when another module name is used:- Existing code will most likely break because the API is not compatible.
- There is no way to have the legacy and the new interface available at the same time (since both need to be imported with
import imas). If you have a workflow with multiple IMAS-ified python components, you need to upgrade everything at the same time, instead of allowing a gradual transition where components are updated one-by-one.
I'm happy to have a (short) discussion about this if needed. Note that I will be over at IO in two weeks, so we could do it then if there's no hurry :)
Cheers,
Maarten
| Here we see the benchmark ``core_profiles.Generate.time_create_core_profiles`` was | ||
| repeated for multiple values of ``hli``: once for the ``imas`` HLI, and once for the | ||
| ``imaspy`` HLI. | ||
| ``imas`` HLI. |
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.
This should be reviewed in more detail. Having the ASV benchmarks compare against the legacy imas interface doesn't make sense when renaming this package to imas.
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.
Updated this file https://imas-python.readthedocs.io/en/latest/benchmarking.html, Could you please check it
Agree on the cleaning/removing of all AL legacy mentions.
In terms of work needed in applications, keeping
|
…/imas-python into rename-imaspy-to-imas
…/imas-python into rename-imaspy-to-imas
olivhoenen
left a comment
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.
LGTM
b2a398a to
d7c6c5d
Compare
|
Just did a quick review of the documentation on https://imas-python.readthedocs.io/en/latest/, a couple of things that should be updated to improve the experience for newcomers:
N.B. the diff of this PR has now become so big that I'm not going to review it in further detail. |
SimonPinches
left a comment
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.
As discussed this morning...
|
Replaced by #14 |
renamed imaspy->imas
package name : imas-python
updated documentation
updated links which were pointing to git.iter.org
branch is tested on bamboo https://ci.iter.org/browse/IC-IG-19
pytest and documentation tested