Jonathan Shimwell
b75ccd598e
Adding energy axis units to plot xs ( #2876 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-02-29 01:31:54 +00:00
Jonathan Shimwell
e8f68a0159
adding resulting nuclide to cross section plot legend ( #2851 )
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-02-17 18:21:52 +00:00
Paul Romano
45006584ca
Fix meaning of "masking" for plots ( #2510 )
2023-05-03 09:52:40 -05:00
Jonathan Shimwell
4cadcbcf02
more flexible cross section plotting ( #2478 )
...
---------
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-04-27 22:26:21 -05:00
zoeprieto
9ebacff23a
Update docstrings
...
Added description of ncrystal_cfg
2023-03-29 16:56:12 -03:00
zoe prieto
dc2a9a8129
Resolved conflict
2023-03-29 16:53:37 -03:00
zoeprieto
094eb958c1
Add support for ncrystal materials
2023-03-22 12:44:56 -03:00
Jonathan Shimwell
993a872798
removed unused else and passing **kwargs
2023-03-22 13:32:38 +00:00
Jonathan Shimwell
83a124c492
[skip ci] review improvments to docstring from @paulromano
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-03-22 13:11:33 +00:00
shimwell
17e9918f5d
removed most deprecated types
2023-03-21 21:51:40 +00:00
shimwell
1a9449debc
finding data_type arg automatically
2023-03-06 20:36:34 +00:00
Paul Romano
80dad0f240
Small fix in plot_xs when S(a,b) tables are present
2022-12-31 11:32:39 +07:00
Paul Romano
a4f98b489c
Change values in dict returned by Material.get_nuclide_atom_densities
2022-06-27 22:36:36 -05:00
Jonathan
04b5f4bc97
fixed minor typo in docs
2022-02-10 00:20:58 +00:00
Jonathan Shimwell
192f4436a0
replaced .format with f string
2021-07-29 18:25:37 +01:00
Jonathan Shimwell
975fb850d6
rename varible as suggested in review
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-10-19 13:33:02 +01:00
Jonathan Shimwell
acde663c90
changed if else layout
2020-10-08 18:23:07 +01:00
Jonathan Shimwell
336b09b358
added to altered functions docstring
2020-10-08 17:33:05 +01:00
Jonathan Shimwell
e71e09884d
allowing plot types to be reaction strings
2020-10-08 17:28:52 +01:00
Miriam
327bca1b6c
Changed name "decay rate" to "decay-rate" to avoid seg faults
...
I added decay-rate to get_xsdata since it was missing.
However, set_decay_rate_mgxs sets it as "decay rate".
That space in the name seems to cause some errors, akin to seg faults.
By replacing that name with "decay-rate", create_mg_mode could run smoothly.
2020-08-28 17:42:15 +00:00
Ethan Peterson
e35f317099
Applying suggestion from code review
...
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-05-26 16:07:51 -04:00
Ethan Peterson
00f5f1a0d6
use get_reaction_components to expand sum rules in plotter
2020-05-19 11:59:47 -04:00
Paul Romano
4943ae9307
Alphabetize import ordering (and use relative imports in a few places)
2020-04-06 15:16:09 -05:00
Paul Romano
d58f8a2da2
Changes in plots.py/plotter.py from PullRequest Inc. review
2020-04-01 14:13:05 -05:00
Ethan Peterson
2b1380519d
Adding data_type kwarg to DataLibrary.get_by_material
...
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
Update tests/unit_tests/test_data_misc.py
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-03 10:16:50 -05:00
PullRequestOpen
6d0aa86cef
Cosmetic fixes from PullRequest [2019-12-05]
2019-12-05 22:22:43 -06:00
Adam G Nelson
1d2ebb71f8
Implemented Expansion filters in to the MGXS classes and removed the old score-based expansions
2018-04-27 19:45:38 -04:00
Paul Romano
ed7edf4141
Have Universe.plot return AxesImage. Add Plot.to_image method
2018-03-15 11:02:07 -05:00
Paul Romano
c428cee667
Remove __future__ and six imports
2018-02-05 23:14:30 -05:00
Paul Romano
9aaa927222
Update Jupyter notebooks to remove use of openmc.Nuclide
2017-12-17 07:16:06 +07:00
Sterling Harper
3f89b67fc0
Fix S(a,b) temperature indexing in plot_xs
2017-03-06 18:37:25 +01:00
Sterling Harper
ad7c16f808
Fix temperature indexing error for plot_xs
2017-03-06 10:56:10 +01:00
Adam Nelson
fc3df18eab
Added an openmc.run mode (summary, which just shows the timing and summary results; fixed the generation of cells from a mesh (incorrect ordering of universes in the lattice), xs_shapes for delayed groups had wrong ordering (fixed) in openmc.MGXSLibrary and openmc.Plotter, fixed error in multi-group plots which only plotted one group not all, fixed issue with setting max order to 0 for Legendre scattering (not legendre converted to tabular w/in OpenMC, the default), removed superfluous xs assignments in MG mode which only slowed things down
2017-02-25 08:17:10 -05:00
Adam Nelson
698d543973
Resolving comments for clarity by @paulromano
2016-12-11 13:10:07 -05:00
Adam Nelson
a45652d785
Used more pythonic commands in plotter module and commented the block which obtains MGXS data for plotting
2016-12-02 18:57:09 -05:00
Adam Nelson
9245ebda77
Docstring changes (forgot optional on some optional attribs)
2016-11-30 20:16:05 -05:00
Adam Nelson
caab2c1c2d
Replaced some numerical constants with named constants
2016-11-30 19:55:59 -05:00
Adam Nelson
d2979851f0
Added ability to treat angle-dependent cross sections in plotting routines
2016-11-29 19:29:41 -05:00
Adam Nelson
2e0e37c305
Merging with angles branch and renaming the MGXSLibrary.__getitem__ to get_by_name
2016-11-27 06:42:36 -05:00
Adam Nelson
92f9ccbb49
Merge branch 'plot_mat' into from_hdf5
2016-11-21 20:36:49 -05:00
Adam Nelson
42baabd155
Whoops, improperly weighted the data
2016-11-21 20:35:06 -05:00
Adam Nelson
20ce145e36
Read in total_nu as a derived product for MT=18 if it only exists as summed, and more correctly treated yields
2016-11-21 20:30:54 -05:00
Adam Nelson
823d6fe1be
Added plot_xs to mgxs-part-iv notebook
2016-11-20 20:13:40 -05:00
Adam Nelson
f76ee0867c
Some major simplifications: combined plot_xs and plot_mgxs so now the same interface works for both, and added support in a very generic way for all the different types of data one would expect to plot for MGXS plots (i.e., all the types in the library itself including choices of certain orders/delayed groups)
2016-11-20 16:11:04 -05:00
Adam Nelson
39dcd86e54
Merge branch 'plot_mat' into from_hdf5
2016-11-20 06:05:50 -05:00
Adam Nelson
14e3684a6a
Fixed issue with plotting nuclides with divisor types
2016-11-20 06:05:36 -05:00
Adam Nelson
199e1e32cc
Merge branch 'plot_mat' into from_hdf5
2016-11-20 05:54:51 -05:00
Adam Nelson
27c07b02d6
cleaned up some comments
2016-11-19 23:32:49 -05:00
Adam Nelson
24798a0ecd
Combined the elemental and material calculate_xs routines
2016-11-19 23:29:59 -05:00
Adam Nelson
9afb0c8d68
Made the _calculate_xs routines consistent in what they return to give us a little simplification
2016-11-19 22:52:30 -05:00