Commit graph

46 commits

Author SHA1 Message Date
Paul Romano
1914e3eefa
Support endf.Material in from_endf methods (#3932) 2026-05-29 21:53:45 -05:00
Ethan Peterson
a1df5842e0
Remove self loops from spontaneous fission decay mode (#3907)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-04-21 16:47:40 +00:00
Paul Romano
db8d462738
Allow DistribcellFilter to work with apply_tally_results=True (#3667) 2025-12-04 06:53:04 -06:00
Patrick Shriwise
1dacf4fd2b
Add missing documentation on <source> in depletion chain file format (#3590)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: April Novak <novak@berkeley.edu>
2025-10-02 16:48:02 +00:00
GuySten
75b5813012
Use cached property for openmc.data.Decay.sources (#3535)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-08-18 13:42:38 +00:00
John Vincent Cauilan
4c0e08bae8
Replace all deprecated Python typing imports and syntax with updated forms (#3085)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-18 17:40:42 +00:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05:00
Paul Romano
61c43527e6
Clip low-importance points from discrete distributions (#2715)
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2023-09-29 21:13:19 -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
c20f115cb9 Change exception in decay source processing to warning 2023-03-03 11:02:48 -06:00
Paul Romano
ecfa94e0ff Rename gnd_name to gnds_name. Change GND to GNDS in comments 2022-12-23 00:06:50 -06:00
jiankai-yu
a17fe6cc82
Add decay heat function in material (#2287)
* add decay heat in material.py

* add decay_energy.json into eggs

* fix a bug when returned decay_ery is None

* add unit test for decayheat

* fix typo in doc string

* address reviewer's comments

* add user defined decay energy

* remove json for decay energy

* address a few comments

* add to docs
2022-11-17 22:57:01 -06:00
Paul Romano
53b6d8ab11 Change 0.14.0 --> 0.13.2 2022-10-21 07:08:52 -05:00
Patrick Shriwise
61f8a793d7
Merge pull request #2267 from paulromano/random-test-fix
Improve tests for checking sample means
2022-10-18 10:20:44 -05:00
Paul Romano
6c4554f1c7 Add missing f prefix for an f-string 2022-10-16 11:42:05 +02:00
Paul Romano
fe04a839c2 Make sure Material.decay_photon_energy works with no unstable nuclides 2022-10-05 14:28:18 -05:00
Paul Romano
10abbe910a Clarify probability units for decay_photon_energy 2022-09-28 13:25:00 -05:00
Paul Romano
7815a5e02d Address @shimwell comments on #2234 2022-09-28 09:31:12 -05:00
Paul Romano
ce1abc5350 Documentation updates 2022-09-26 12:58:54 -05:00
Paul Romano
a917fd94c1 Add decay_photon_source property on Material 2022-09-26 12:58:53 -05:00
Paul Romano
3e5afd21eb Add missing definition of _sources in Decay.__init__ 2022-07-22 16:42:24 -05:00
Paul Romano
a68a3ede6a Change get_sources() -> sources property and add test 2022-07-22 15:08:25 -05:00
Paul Romano
7c779f73f8 Move combine_distributions to univariate.py 2022-07-22 14:56:05 -05:00
Paul Romano
d4989ae642 Use integral() methods instead of _intensity hidden attribute 2022-07-22 14:56:05 -05:00
Paul Romano
6388c8f994 Separate out a function for combine_distributions 2022-07-22 14:56:05 -05:00
Paul Romano
1b2b5e169c Map radiation type to particle type properly in Decay.get_sources 2022-07-22 14:56:04 -05:00
Paul Romano
b7596245f2 Combined decay distributions 2022-07-22 14:56:04 -05:00
Paul Romano
c4a9b2c8b1 Get gamma and xray decay sources as distributions 2022-07-22 14:56:04 -05:00
Paul Romano
19494cccd0 Add check in Decay.decay_constant for erroneous half-life 2022-06-27 22:42:13 -05:00
Paul Romano
0dc6f463ed Change 'type' to 'from_mode' for decay sublibrary continuous spectra. Closes #2017 2022-03-31 14:56:19 -05:00
Paul Romano
99cb54bf8e Comment explaining special case in get_decay_modes 2021-09-13 15:42:15 -05:00
Paul Romano
c08d9bc142 Fix get_decay_modes ('unknown' wasn't recognized) 2021-08-29 21:29:41 -05:00
Paul Romano
591639b9e0 Fix typo in docstring 2020-10-05 20:55:55 -05:00
Paul Romano
a9f1d9c5bc
Apply suggestions from code review
Co-authored-by: Andrew Johnson <drewejohnson@users.noreply.github.com>
2020-10-05 20:55:18 -05:00
Paul Romano
abc9e9c7ad Add decay_energy property on Decay class and associated bug in chain.py 2020-10-05 15:39:20 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
1b177634f4 Changes in data/decay.py from PullRequest Inc. review 2020-03-31 17:41:12 -05:00
Paul Romano
4ad1aeac3a Fix potential bug in Decay class 2019-06-25 07:31:53 -05:00
Paul Romano
c83b890869 Use ufloat for stochastic volume results 2018-03-19 10:40:45 -05:00
Paul Romano
e3d6189cfa Make sure Decay.half_life is set, even for stable nuclides 2018-02-26 22:12:14 -06:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
0e029771e7 Fix decay_constant attribute, add Decay.from_endf classmethod 2016-11-27 16:04:40 -06:00
Paul Romano
6434886820 Address @smharper comments on #761. Also add one publication in docs. 2016-11-23 18:51:05 -06:00
Paul Romano
4e059a4d2b Use isomeric state, not excited state, for fission products.
After a discussion with Dave Brown from BNL, it was confirmed that FPS in the
ENDF-6 format for fission product yields refers to the isomeric state, not the
excited state.
2016-11-21 14:10:40 -06:00
Paul Romano
2395f9a96c Add FissionProductYields class and Decay class 2016-11-18 11:31:23 -06:00