-
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
Releasing v.0.2.1 #33
Conversation
Corrected hard-coded dimension use and comments.
Following new functions are being added to the subset_tools.jl file: - add_subset_element! - get_subset_space - get_grid_subset_with_index - get_subset_boundary_inds - get_subset_boundary - subset_do These functions have been modified to have fixed input argument types. Currently, most grid_subset operations are only defined for edge profiles but this can be expanded easily using get_types_with() from types.jl. This removes all dependence of GGDUtils from SOLPS2IMAS except for the test script. This will be removed in a later commit.
Moving grid_subset functions from SOLPS2IMAS
GGDUtils is now only dependent on OMAS.jl. For testing, a json file has been created with SOLPS2IMAS and now is used instead of the original SOLPS files. This removed the test dependency on SOLPS2IMAS. I also cleared all old sample files from the repository. The test script was also modified to load the ids structure only once and use for all tests and print out individual time for each large function.
SOLPS2IMAS dependecy removed. Simple PR, so merging without review.
Plot recipes also used dimension information to determine how to plot subsets of different dimensions. This got left out in the dimension updte PR earlier in #24
Updating dimension use in recipes
* Using subset tools from GGDUtils.jl now * Marking examples/Project.toml to be ignored by git * Using develop to add latest GGDUtils.jl in plotting tests
Updated plotting examples to reflect new changes
Added recipe to plot interferometer geometry on top of SOLPS mesh in the R-Z plane. Added recipes for plotting integrated and averaged electron density data from interferometer as time series. Added example file to see how to use these functions.
Plotting recipes for interferometer data
Some simple: - Remove unnecessary array allocation - Improve performance of _G function Some complicated - Avoid returning multiple function calls - Use let function to avoid captured variables (see https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-captured)
Optimization changes
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.
- No obvious problems in source
- Test passes
- plotting_interferometer example notebook appears to be redundant with SynthDiag repo's example of the same name. Is this intended?
- notebook executes, though.
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.
The other notebook, plotting.ipynb, executes.
I guess this version of plotting_interferometer.ipynb
is different since it runs out of a sample file that has all the interferometer data loaded, right? Redundancy/overlap in examples should be okay in principle, as long as there isn't huge code duplication. So this should be fine.
Major changes