-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor gridspacedesc.yml so all the subset info is standard and built in, and not user supplied #33
Comments
probably it should be in GGDUtils |
How about I move default gridspecdesc.yml to src and make it a default argument. That way we can easily change defaults in future and it will leave the possibility open of supplying user-specified description. |
That would solve the immediate issue. I wonder if maybe the subset definitions should be in a separate file, which would make them easier to find (if the file were subsets.yml) and also I think the use case for changing subsets is different from changing the other setup that's in that file. But even if you don't want to split, what you say seems fine. |
Argument gsdesc of solps2imas function has been made a keyword argument now with default value given as src/default_grid_space_description.yml. Now, the user can skip providing this file and rely on code defaults for most of the use cases. This commit resovles ProjectTorreyPines/SOLPS2ctrl.jl#33 Note, that SD4SOLPS.jl requires some changes now.
PR ProjectTorreyPines/SOLPS2imas.jl#24 will change gsdesc to a keyword argument with default file. This commit changes all use cases of solp2imas to use the default gsdesc value instead of supplying a file. This is in support of closing #33
I did not go ahead with file splitting, partially because I could not understand what you meant. Creating 25 extra files for subset just to hold tiny amounts of meta data seemed too much to me, but maybe I misunderstood what you meant. I've opened two PRs that will resolve this issue as per the suggested changes above: |
PR ProjectTorreyPines/SOLPS2imas.jl#24 will change gsdesc to a keyword argument with default file. This commit changes all use cases of solp2imas to use the default gsdesc value instead of supplying a file. This is in support of closing #33
@anchal-physics No, not 25 files. Just two. One for the space and index stuff, and one for all of the subsets. Well, actually three might be better:
|
Aah, I got it now. I'll request new PRs in the future bringing this feature. We can leave this issue open to signify remaining work. |
No description provided.
The text was updated successfully, but these errors were encountered: