Commit graph

73 commits

Author SHA1 Message Date
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
Olek
bbd7756930
Allow decay only nuclides to be specified in Material for a depletion simulation (#2616)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-09-14 01:00:52 +00:00
Paul Romano
c1232a83e0 Add volume arguments on several methods in Material class 2023-03-03 15:08:17 -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
fe04a839c2 Make sure Material.decay_photon_energy works with no unstable nuclides 2022-10-05 14:28:18 -05:00
Paul Romano
7815a5e02d Address @shimwell comments on #2234 2022-09-28 09:31:12 -05:00
Paul Romano
95d182b73f Add tests for decay photon source 2022-09-26 12:58:54 -05:00
Paul Romano
b779141b57
Merge pull request #2205 from yardasol/add_components_metastable_fix
Fix errorneous behavior when adding metastable nuclides via `add_components`
2022-09-07 16:45:06 -05:00
Olek
85c5c791d6
Cleanup flow control for detecting nuclides
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-09-01 14:33:24 -05:00
yardasol
0214b22036 fix errorneous behavior when adding metastable nuclides via add_components 2022-09-01 11:52:21 -05:00
shimwell
5a0884e9de corrected get nuclide tests 2022-08-29 22:41:07 +01:00
shimwell
5f1b05f5fa added element filter to get_nuclide 2022-08-29 17:01:34 +01:00
Jonathan Shimwell
474f0742ba
[skip ci] suggestion from review by @Paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-08-25 15:10:45 +01:00
Jonathan Shimwell
08f026496b
[skip ci] removed blank line pep8 2022-08-23 23:20:59 +01:00
Jonathan Shimwell
1e55089e9d
[skip ci] removed print statement 2022-08-23 23:20:18 +01:00
Jonathan Shimwell
6171e09ed3 improved test fixed sum bug 2022-08-23 16:42:22 +01:00
Jonathan Shimwell
085125ef86 added optional nuclide to atom densities 2022-08-23 16:30:53 +01:00
Jonathan Shimwell
63b517aebc
updated tests to use units args by @eepeterson
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-08 14:52:35 +01:00
shimwell
496dda717c removed missing bracket 2022-08-04 23:59:51 +01:00
Jonathan Shimwell
75d82a7df7
reverting to pytest.approx
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 23:43:42 +01:00
Ethan Peterson
39eaf9d887
Apply suggestions from code review
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2022-08-04 16:50:18 -04:00
Jonathan Shimwell
152a149488
density set to 1.5 to test different activities scaling
Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
2022-08-04 16:15:12 +01:00
Jonathan Shimwell
a30f9b88fd combined activity unit tests as suggested @eepeterson 2022-08-04 15:49:11 +01:00
Jonathan Shimwell
8164f309e9 added pre volume attribute tests for stable nuclide 2022-08-04 15:37:01 +01:00
Jonathan Shimwell
e4d54d49a8 moved volume lower 2022-08-04 09:39:14 +01:00
shimwell
98c707ea07 refactor activities to single method 2022-08-03 22:46:50 +01:00
Jonathan Shimwell
742311fd1b
[skip ci] fixed typo 2022-08-02 17:37:17 +01:00
Jonathan Shimwell
98c287b83a volume not needed when finding specific activity 2022-08-02 17:24:48 +01:00
Jonathan Shimwell
064426a05f added specific_activity 2022-08-02 13:17:33 +01:00
yardasol
effc35b8ee add_elements_or_nuclides -> add_components
- changed the assumptions the function makes about the 'components'
  parameter
- added 'percent_type' parameter
- passed changes to unit test
2022-07-29 18:28:08 -05:00
yardasol
623658870d merged add_nuclides and add_elements into one function 2022-07-28 11:00:48 -05:00
yardasol
b3d0f20a00 added add_nuclides method 2022-07-27 13:15:10 -05:00
Paul Romano
7fcc204726 Implement Material.get_nuclide_atoms method 2022-06-27 22:42:12 -05:00
Paul Romano
a4f98b489c Change values in dict returned by Material.get_nuclide_atom_densities 2022-06-27 22:36:36 -05:00
Paul Romano
cdf710ad37
Merge pull request #2089 from shimwell/adding_remove_element
Adding remove element method to material class
2022-06-27 22:07:58 -05:00
Jonathan Shimwell
270ef8346c added metastable activity test 2022-06-22 23:18:14 +01:00
Jonathan Shimwell
839c0fe81b refined remove element 2022-06-22 08:32:37 +01:00
Jonathan Shimwell
9b36424e16 added remove element to material 2022-06-22 08:19:00 +01:00
Jonathan Shimwell
acd6c567c3 added test for remove eleemnt 2022-06-21 14:19:45 +00:00
Jonathan Shimwell
e5e1daf23f
[skip ci] removed diagnostic prints 2022-06-09 15:02:10 +01:00
Jonathan Shimwell
1234e0b17c review suggestions from @PaulRomano 2022-06-09 14:59:28 +01:00
Jonathan Shimwell
90ff8fcb4a added checks and tests for cases in add_element 2021-05-19 13:31:45 +01:00
Andrew Johnson
b7871bdc85
Merge pull request #1534 from billingsley-john/feature_add_get_elements
added get_elements function and tests
2020-03-26 17:36:06 -04:00
billingsley-john
08849c3fad
removed further check for specific entry
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-03-26 14:33:44 +00:00
billingsley-john
a48f679b4e
removed checks for length and specific entries
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
2020-03-26 14:04:53 +00:00
billingsley-john
1c3373ce61
Sorted returned element list and updated tests
Returned element list is now sorted alphabetically.
Tests updated to check list elements instead of list length.

Co-Authored-By: Jonathan Shimwell <jonathan.shimwell@ukaea.uk>
2020-03-26 12:59:12 +00:00
billingsley-john
ed36017015 added get_elements function and tests 2020-03-26 10:22:56 +00:00
Paul Romano
e7f4413415 Merge branch 'develop' into pullrequestinc-part2 2020-03-25 14:48:28 -05:00
=shimwell
c013f63730 pep8 format applied to imports 2020-03-25 15:03:39 +00:00
Jonathan Shimwell
4234fe45e7
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-03-25 14:58:02 +00:00