Commit graph

366 commits

Author SHA1 Message Date
Jonathan Shimwell
064426a05f added specific_activity 2022-08-02 13:17:33 +01:00
yardasol
0dd8f70939 add paulromano's 2nd round of suggestions 2022-08-01 09:22:10 -05: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
6351b49ea2 add reference to add_elements_or_nuclides in the docstring for Material 2022-07-28 16:06:19 -05:00
yardasol
9317724a5b fix examples formatting 2022-07-28 16:03:42 -05:00
yardasol
623658870d merged add_nuclides and add_elements into one function 2022-07-28 11:00:48 -05:00
Olek
9ae0c6bd55
add add_elements
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2022-07-28 08:50:48 -05:00
yardasol
b3d0f20a00 added add_nuclides method 2022-07-27 13:15:10 -05:00
Jonathan Shimwell
5985adbccb
Merge branch 'develop' into adding_typehints_to_match_docs_material.py 2022-07-11 11:10:02 +01:00
Jonathan Shimwell
69cb024882
Adding type hint h5py.Group 2022-07-08 23:52:27 +01:00
Jonathan Shimwell
7e89003705
[skip ci] Apply suggestions from code review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-07-08 23:44:32 +01:00
Paul Romano
7723ea492c Add Material.get_nuclide_activity method and decay_constant function 2022-06-28 23:16:50 -05:00
Paul Romano
3c20b1e415 Fix use of get_nuclide_atom_densities in Material.activity property 2022-06-28 08:00:16 -05:00
Jonathan Shimwell
dbf69b966a
Merge branch 'develop' into adding_typehints_to_match_docs_material.py 2022-06-28 11:48:35 +01: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
1a8c248597
Merge branch 'develop' into adding_typehints_to_match_docs_material.py 2022-06-23 13:12:57 +01:00
Jonathan Shimwell
bebf729ad0 removed circular import types 2022-06-22 22:41:01 +01:00
Jonathan Shimwell
c2018c41fd
More efficient regex usage
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-22 22:45:37 +02:00
Jonathan Shimwell
a003c5850a added type hints to match doc strings 2022-06-22 14:59:21 +01:00
Jonathan Shimwell
649f4a28f2
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-22 14:21:02 +02: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
53b5cce209
Applying missed suggestions
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-06-22 08:01:07 +01:00
Jonathan Shimwell
87dafd1e31 review comments from @paulromano 2022-06-21 23:14:49 +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
a4661fdca8
[skip ci] removed print statement 2022-06-08 17:39:40 +01:00
Jonathan Shimwell
47e242551d using math to get ln(2) 2022-06-08 17:34:10 +01:00
Jonathan Shimwell
5bf60560af removed import math 2022-06-08 17:31:30 +01:00
Jonathan Shimwell
e030b74836 add get_activity 2022-06-08 17:28:33 +01:00
Paul Romano
66051251c0 Fix method links in Material docstring 2022-05-24 11:01:10 -05:00
Jonathan
04b5f4bc97 fixed minor typo in docs 2022-02-10 00:20:58 +00:00
Paul Romano
13dc40a66d Don't guess thermal name in Material.add_s_alpha_beta 2022-01-15 15:22:12 -06:00
Paul Romano
ab4ef1d7be Ensure Materials.cross_sections accepts path-like object 2021-10-20 10:47:44 -05:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Jonathan Shimwell
90ff8fcb4a added checks and tests for cases in add_element 2021-05-19 13:31:45 +01:00
Jonathan Shimwell
21dc58bff1 changing element to element.title to catch lowercase entries 2021-05-17 17:50:08 +01:00
Yue JIN
ccd76516f1
Using python's any function to inherit involved materials' attr
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2020-09-10 10:50:17 +08:00
Yue JIN
b7a4beff5c Make mix_materials() inherit "depletable" attribute of involved materials 2020-09-09 13:36:43 +08:00
Paul Romano
46f322fe0f Fix use of enrichment with Material.add_elements_from_formula 2020-07-10 07:20:50 -05:00
Paul Romano
16d7ec0641 Sort XML attributes to preserve pre-Python 3.8 XML writing behavior 2020-06-17 22:08:09 -05:00
Paul Romano
5547ecf88f Add versionadded directive for new arguments/functions in 0.12 2020-04-10 21:52:43 -05: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
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05: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
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