Commit graph

103 commits

Author SHA1 Message Date
Paul Romano
01790598d6
Optimize depletion chain loading and material activity calculations (#4025)
Some checks are pending
Tests and Coverage / filter-changes (push) Waiting to run
Tests and Coverage / Python 3.13 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14 (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.14t (omp=n, mpi=n, dagmc=, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=n, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=n, libmesh=n, event=n (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=n, dagmc=, libmesh=, event=y (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=y, libmesh=, event= (push) Blocked by required conditions
Tests and Coverage / Python 3.12 (omp=y, mpi=y, dagmc=, libmesh=y, event= (push) Blocked by required conditions
Tests and Coverage / coverage (push) Blocked by required conditions
Tests and Coverage / Check CI status (push) Blocked by required conditions
dockerhub-publish-develop / main (push) Waiting to run
dockerhub-publish-develop-dagmc-libmesh / main (push) Waiting to run
dockerhub-publish-develop-dagmc / main (push) Waiting to run
dockerhub-publish-develop-libmesh / main (push) Waiting to run
2026-07-24 11:59:55 +03:00
Paul Romano
d56cda2544
Implement DecaySpectrum distribution type and utilize in R2S (#3930)
Co-authored-by: Copilot <copilot@github.com>
2026-05-08 20:53:12 -05:00
Paul Romano
3ce6cbfdda
Add fusion_neutron_spectrum to openmc.stats module (#3862) 2026-03-17 22:10:18 +01:00
GuySten
322b741fde
Support Mixture distributions in combine_distributions (#3784)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-26 07:30:08 +00:00
Paul Romano
8198e6021d
Add truncated normal distribution support (#3761) 2026-02-12 18:25:56 +02:00
GuySten
96383fcb2b
More interpolation types in Tabular. (#3413)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-02-11 21:05:07 +00:00
GuySten
2691ff8a0f
Fix type hinting and simplify implementation of combine_distributions (#3445)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-21 14:33:30 +00:00
Jack Fletcher
0486e433d2
Source biasing capabilities (#3460)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2026-01-12 09:51:12 -06:00
Paul Romano
055ea15a2d
Clip mixture distributions based on mean times integral (#3603) 2025-10-17 18:09:37 -05:00
Jack Fletcher
c7175289eb
PowerLaw raises an error if sampling interval contains negative values (#3542) 2025-09-11 15:57:02 +03:00
GuySten
a11021cd07
Consistent XML parsing using functions from _xml module (#3517)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2025-08-08 17:47:55 +00:00
Paul Romano
6e0f156d33
Fix Tabular.from_xml_element for histogram case (#3287) 2025-02-04 10:38:37 -06:00
Paul Romano
04ecf54907
Improve clipping of Mixture distributions (#3154)
Co-authored-by: Ethan Peterson <eepeterson3@gmail.com>
2024-10-11 07:13:10 -04:00
Paul Romano
4ef1faf766
Add delta_function convenience function (#3090) 2024-08-16 11:33:59 -05:00
Juan M. Valderrama
9d9b2daceb
Improve description of probabilities for openmc.stats.Tabular class (#3099)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-07-30 19:47:00 +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
84f561c1ed
sets used instead of lists when membership testing (#3021) 2024-06-19 14:48:34 +00:00
Patrick Shriwise
0b686e365e
Correction for histogram interpolation of Tabular distributions (#2981)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-05-25 14:11:21 -05:00
Jonathan Shimwell
5d2b352025
f strings instead of .format for string editing (#2987) 2024-04-29 16:45:37 -05:00
Paul Romano
9fee6534b6
Prepare for NumPy 2.0 (#2845) 2024-03-26 12:00:06 -04:00
rlbarker
b3a2456f2b
Added checks that tolerance value is between 0 and 1 (#2884) 2024-02-26 16:15:50 -06:00
Paul Romano
94f02ae10b
Bump version to 0.14.0-dev (#2740) 2023-10-31 16:55:19 -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
557880aefc
Allowing CylindricalMesh and SphericalMesh to be fully made via constructor+ type hints (#2619)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-05 16:16:42 -04:00
Patrick Shriwise
0666e3a4f6
Fix for muir std. dev. (#2598) 2023-07-13 20:16:27 -05: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
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Paul Romano
c20f115cb9 Change exception in decay source processing to warning 2023-03-03 11:02:48 -06:00
Paul Romano
dbbad687eb Don't call normalize inside Tabular.mean 2023-02-03 08:32:05 -06:00
Paul Romano
53b6d8ab11 Change 0.14.0 --> 0.13.2 2022-10-21 07:08:52 -05:00
Paul Romano
50067898ff Replace Muir classes with single muir() Python function 2022-09-08 13:42:22 -05:00
Paul Romano
d31b083685 Address @yardasol review comments 2022-08-16 16:19:55 -05:00
Paul Romano
02f1815299 Add missing versionadded directives 2022-08-15 13:20:59 -05:00
Paul Romano
ca99195e81 Fix Mixture.sample to account for intensities of underlying distributions 2022-08-11 07:27:04 -05:00
Paul Romano
cc7aa092be Address @eepeterson comments on #2135 2022-07-28 17:07:06 -05:00
Paul Romano
b2fed3c3ce Fix bugs in Discrete, Tabular, and Mixture sample methods 2022-07-28 17:06:13 -05:00
Paul Romano
a68a3ede6a Change get_sources() -> sources property and add test 2022-07-22 15:08:25 -05:00
Paul Romano
5a9662aa9f Add test for combine_distributions, use np.array in Discrete/Tabular setters 2022-07-22 14:56:05 -05:00
Paul Romano
7c779f73f8 Move combine_distributions to univariate.py 2022-07-22 14:56:05 -05:00
Paul Romano
443c2ac4c9 Add integral method on Discrete, Tabular, and Mixture classes 2022-07-22 14:56:04 -05:00
Patrick Shriwise
f92ea393f2 Using np.random.choice in Mixture class 2022-06-20 06:39:55 -05:00
Patrick Shriwise
967fc9f88b Adding a 'mean' method to tabular dist 2022-06-19 10:00:27 -05:00
Patrick Shriwise
862189985b Check that output values do not exceed values in tabulated dist 2022-06-19 09:51:45 -05:00
Patrick Shriwise
f46402fd87 Adding docstrings to normalize methods 2022-06-19 09:43:40 -05:00
Patrick Shriwise
f52865854b
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-19 09:39:53 -05:00
Patrick Shriwise
0c3d30e6d1
Update openmc/stats/univariate.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-19 09:31:38 -05:00
Patrick Shriwise
e1fd9959bc A little cleanup 2022-06-09 08:00:17 -05:00
Patrick Shriwise
9dc84fdb18 Always normalize distributions when sampling. Adding normalization method for tabular. 2022-06-09 01:17:46 -05:00
Patrick Shriwise
12b8a0802f Updating masks and adding some comments for clarity 2022-06-07 23:12:31 -05:00
Patrick Shriwise
2c74dcf336 Adding similar test for Muir distribution 2022-06-07 23:12:31 -05:00