Commit graph

146 commits

Author SHA1 Message Date
Kevin Sawatzky
4f4930b633
Temperature feedback support in the random ray solver. (#3737) 2026-02-09 16:54:59 -06:00
Jonathan Shimwell
dfc80c7069
fixing temperatures setting for mgxs (#3712) 2026-01-07 10:54:57 +00:00
Jonathan Shimwell
7dceb1d80a
closing mgxs h5py file with context manager (#3707)
Co-authored-by: GuySten <62616591+GuySten@users.noreply.github.com>
2026-01-06 22:59:38 +00:00
Makarand More
a74c1424a8
Update check_type calls to accept both str and os.PathLike objects. (#3618)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-10-28 14:50:11 +00:00
Jonathan Shimwell
3ac5d6f8f5
Allow Path objects in MGXSLibrary.export_to_hdf5 (#3608)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-10-20 16:45:14 +00:00
Paul Romano
3dff03f824
Resolve warnings related to numpy 2.0 (#3044) 2024-06-19 15:47:08 -05:00
Jonathan Shimwell
84f561c1ed
sets used instead of lists when membership testing (#3021) 2024-06-19 14:48:34 +00:00
Paul Romano
dcb80338c5
Eliminate deprecation warnings from scipy and pandas (#2951) 2024-06-11 22:56:31 -04:00
Paul Romano
9fee6534b6
Prepare for NumPy 2.0 (#2845) 2024-03-26 12:00:06 -04:00
Jonathan Shimwell
ee7b95245a
Static errors continuation (#2557)
Co-authored-by: Christina Cai <chrsitinacai48933@gmail.com>
Co-authored-by: christinacai123 <63215816+christinacai123@users.noreply.github.com>
2023-06-16 22:34:02 -05:00
Paul Romano
225e40db0c Add mg_cross_sections to openmc.config 2022-09-07 16:46:10 -05:00
Paul Romano
a074e0a5cf Use openmc.config['cross_sections'] instead of OPENMC_CROSS_SECTIONS 2022-09-07 16:46:10 -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
Paul Romano
e1c47437bb Avoid several Python warnings 2021-04-26 14:45:37 -05:00
Miriam
e4b14d2ac6 Quick fix related to the shape of decay-rate. 2021-01-14 17:59:26 +00: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
Miriam
8f0629b133 Attributes listed in doc strings but missing from properties
After getting an error "XSdata has no attribute 'beta'", I saw that
beta, decay_rate, and inverse_velocity were listed as attributes in
XSdata, but were not included in the @properties.

Just added them. Also noticed there doesn't seem to be a test for this class.
2020-08-25 03:23:28 +00: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
0a34fcd600 Changes in mgxs.py/mgdxs.py from PullRequest Inc. review 2020-04-01 13:54:08 -05:00
Paul Romano
d15e404ac3 Address remaining comments from @drewejohnson 2020-03-25 07:10:35 -05:00
Paul Romano
97a0260784 Changes in mgxs_library.py from PullRequest Inc. review 2020-03-23 20:55:01 -05:00
Paul Romano
cf6b67c05d Remove explicit inheritance from object for Python classes 2020-03-23 12:12:31 -05:00
guillaume
df5727cf3e Fix setting multiplicity matrix for histogram MGMC XS 2019-12-14 21:02:48 -05:00
liangjg
ea71b9e377 replace all dataset.value with dataset[()] (or occasionally dataset[...]) 2019-03-27 11:45:48 -04:00
Sterling Harper
0ddd51e50b Fix deprecated numpy code 2018-10-17 13:15:21 -04:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Sterling Harper
0460d9a538 Allow optional 'latest' libver for HDF5 xs data 2017-12-17 19:48:08 -05:00
Sterling Harper
f754357aea Use 'earliest' libver in h5py for backwards-compat 2017-12-16 19:56:34 -05:00
Paul Romano
1bd3e0b1d0 Make scipy and pandas required dependencies 2017-06-07 20:12:51 -05:00
Adam Nelson
ac156ba380 fixed MGXSLibrary.from_hdf5 issue 2017-05-07 04:32:37 -04:00
Adam Nelson
04c1304dc4 Added Version number to MGXS Library format 2017-03-18 10:13:16 -04:00
Paul Romano
740d233f66 A few documentation fixes 2017-03-01 07:10:51 -06:00
Paul Romano
583782864e Remove references to Nu/Prompt MGXS classes in docs 2017-02-28 06:42:33 -06:00
Will Boyd
1bd3cde52b Merge pull request #803 from nelsonag/nonu
Removal of Nu* MGXS classes.
2017-02-26 15:44:19 -05:00
Adam Nelson
c82cf1bea4 I should quit while im ahead. this is three times in a row i missed this file 2017-02-26 15:15:02 -05:00
Adam Nelson
58517587aa I again forgot about updating the mgxs_library module for the removal of the prompt types 2017-02-26 06:26:24 -05:00
Adam Nelson
c40a1ca2fd whoops, missed some old Nu* references 2017-02-25 14:54:03 -05: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
471ebbfa89 Moved check for small values to end of convert_scatter_format and added blank line 2017-02-19 06:10:20 -05:00
Adam Nelson
e6a3c04817 docstring modifications and reduced histories in test_mg_convert in an attempt to bring its runtime down 2017-02-18 05:20:30 -05:00
Adam Nelson
384a08956a Added test of convert_* methods; 2017-02-16 21:02:34 -05:00
Adam Nelson
130db90c2a cleaned up comments and removed the conversion to CE 2017-02-15 20:27:31 -05:00
Adam Nelson
13bbabd8cf old code cleanup 2017-02-13 19:51:25 -05:00
Adam Nelson
8093f3654d Tested scattering rigorously which resulted in some changes 2017-02-12 20:36:39 -05:00
Adam Nelson
2987ed8822 Fix for floating point errors (rarely) causing crashes as no outgoing group is found 2017-02-12 13:18:52 -05:00
Adam Nelson
7e1700227c Fixes to scatter format conversion as well as initial implementation of conversion of MG library to CE 2017-02-05 15:56:23 -05:00
Adam Nelson
1c367b049c Finished convert_scatter_format; tested, seems to be great! 2017-01-29 15:25:00 -05:00
Adam Nelson
1cd15696c1 fixes to convert_representation and MGXSLibrary implementation of convert_scatter_format 2017-01-28 13:44:38 -05:00
Adam Nelson
756a43f1c5 Added ability to convert the isotropic or angle representation from one to the other for XSdata objects and MGXSLibrary objects 2017-01-28 11:34:29 -05:00