Commit graph

121 commits

Author SHA1 Message Date
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
3efd24289d
Fix creation of meshes when from loading settings from XML (#2805) 2023-12-13 08:41:51 -06:00
Patrick Shriwise
e0d03812b9
Mesh Source Class (#2759)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2023-12-02 17:35:23 +00: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
61b30f5dcc
Merge pull request #2334 from pshriwise/umesh_sampling
Unstructured Mesh Sampling Updates
2023-02-16 07:24:13 -06:00
Patrick Shriwise
fc67b38ba4 Adding roundtrip test for mesh sampling 2023-02-03 20:11:35 -06:00
Paul Romano
dbbad687eb Don't call normalize inside Tabular.mean 2023-02-03 08:32:05 -06:00
Patrick Shriwise
e873db9a07
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-01-12 23:13:09 -06:00
Patrick Shriwise
219a4b04da Addressing comments from @NybergWISC
Co-authored-by: Matthew Nyberg <mnyberg@wisc.edu>
2023-01-03 10:35:44 -06:00
Patrick Shriwise
580096d423 Removing MESHES import 2022-12-29 10:39:41 -06:00
Patrick Shriwise
43549cf1f1 A couple small changes from original PR comments 2022-12-29 09:23:14 -06:00
Patrick Shriwise
0ffe0b39c1 Adding docstrings to MeshSpatial Python class 2022-12-29 09:23:14 -06:00
NybergWISC
115be68953 Small refactor of distribution_spatial.cpp and change default of volume_normalized to True 2022-12-29 09:23:14 -06:00
NybergWISC
bd60956d20 Second round of comments. volume method is now implemented from Mesh instead of UnstructuredMesh 2022-12-29 09:23:14 -06:00
NybergWISC
7c40badfbc Address comments on initial PR, all changed other than name of class and the use of python API to combine track outputs 2022-12-29 09:23:14 -06:00
NybergWISC
9f6d536959 Commit including most of the sampling work in distribution_spatial.cpp and testing 2022-12-29 09:23:12 -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
eb1dc015e5 Fix reading of reference_uvw during from_xml 2022-08-31 12:37:20 -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
Patrick Shriwise
8070ccaf52 Adding sampling for Mixture. Improving performance of Discrete sampling 2022-06-07 23:12:31 -05:00
Patrick Shriwise
17be0257a0 Correction to histogram cdf method 2022-06-07 23:12:31 -05:00
Patrick Shriwise
136ff45cc5 Adding docstrings. Corrections to Tabular sampling 2022-06-07 23:12:31 -05:00
Patrick Shriwise
e856c6a270 Correction to maxwell dist sampling 2022-06-07 23:12:31 -05:00
Patrick Shriwise
7484618c7c Adding sample methods to univariate distribution classes 2022-06-07 23:12:31 -05:00