Skip to content
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

Merged
merged 15 commits into from
Jan 18, 2024
Merged

Releasing v.0.2.1 #33

merged 15 commits into from
Jan 18, 2024

Conversation

anchal-physics
Copy link
Collaborator

Major changes

  • Dimension number in grid_ggd has been corrected to reflect IMAS convention (page 27 of GGDguide.pdf)
  • Dependency on SOLPS2IMAS has been removed. Now, only dependent on OMAS.jl in this project.
  • Added visualtization of synthetic interferometer data and chords.
  • Optimized code for low memory use and fast processing in interferometer.

anchal-physics and others added 15 commits November 3, 2023 13:38
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)
@anchal-physics anchal-physics requested a review from eldond January 17, 2024 20:14
Copy link
Contributor

@eldond eldond left a 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.

Copy link
Contributor

@eldond eldond left a 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.

@anchal-physics anchal-physics merged commit ae404df into master Jan 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants