Commit graph

52 commits

Author SHA1 Message Date
Patrick Myers
1cb22075ef
Changed xml to lxml (#2489) 2023-05-09 10:41:04 -05:00
Patrick Shriwise
fc67b38ba4 Adding roundtrip test for mesh sampling 2023-02-03 20:11:35 -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
NybergWISC
9f6d536959 Commit including most of the sampling work in distribution_spatial.cpp and testing 2022-12-29 09:23:12 -06:00
Jonathan Shimwell
375af321d8
corrected types from code review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-11-01 15:49:22 +00:00
Jonathan Shimwell
3623408bc5 avoid namespace overwrite of union 2022-10-27 17:38:27 +01:00
Jonathan Shimwell
459b0f1fcf avoid union namespace overwrite 2022-10-27 16:17:49 +01:00
Jonathan Shimwell
2af754baa9 forward ref for openmc.source 2022-10-26 20:32:44 +01:00
Jonathan Shimwell
84b055e15b reordered imports to avoid circular imports 2022-10-26 20:24:23 +01:00
Jonathan Shimwell
5d177a5ace
Apply suggestions from code review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-10-26 20:21:06 +01:00
Jonathan Shimwell
4116f6cda0 used forwards ref to avoid circlar imports 2022-10-21 19:04:45 +01:00
Jonathan Shimwell
17a6552027 added return types 2022-10-21 18:47:07 +01:00
Jonathan Shimwell
1a7066a885 added type hints for source.py 2022-10-21 18:38:44 +01:00
Paul Romano
3e5c9d83c5 Expand source rejection to cells, materials, and universes 2022-09-26 13:25:41 -05:00
Paul Romano
aff6316642 Simple rejection based on a vector of cell IDs 2022-09-26 13:25:41 -05:00
Paul Romano
2e0472d57c Respond to @shimwell comments on #2071 2022-05-23 12:28:28 -05:00
Paul Romano
2e9560a72c Add TrackFile Python class for parsing track files 2022-05-19 13:27:33 -04:00
Olaf Schumann
759aba2e98
Update openmc/source.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-01-07 15:53:10 +01:00
Olaf Schumann
d93df33dfb Implementation of time distribution for the source 2022-01-05 21:06:09 +00:00
Paul Romano
ef61563079 Ensure time is propagated to secondary particles 2022-01-05 07:43:43 -06:00
Paul Romano
56fa60983d Add doc section on file-based sources 2021-03-17 07:34:01 -05:00
YoungHui Park
58a65222a1 Add missing changes on source.py 2021-01-18 14:36:05 -06:00
Paul Romano
490eadd864 Make sure write_source_file creates filetype attribute 2020-10-20 14:07:45 -05:00
Paul Romano
441d081dd5 Implement write_source_file function 2020-10-14 15:46:58 -05:00
Dan Short
9435020197 Update docstring
custom source -> custom source library
2020-08-28 09:38:38 +01:00
Dan Short
8bb10563c1 Pass serialization as parameter attribute
Changes the implementation of the serialization to be on an attribute of
the source XML element within settings.xml. This removes the need for a
new file containing the serialization.
Parameters are provided as a key-value string, separated by a comma and
a space, although the implementation can change this is required.
Change example values to align with existing custom_source to make
comparisons easier.
Update documentation to be consistent.
2020-08-03 14:24:17 +01:00
Dan Short
61cf4f71a9 Add a serialization attribute to Source
Adds serialization as an optional attribute to Source objects.
This attribute represents the path to the file containing the serialized
representation of the source.
2020-07-31 10:26:33 +01: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
Paul Romano
8e8d5e0478 Documentation updates 2020-02-24 19:53:46 -06:00
Andrew Davis
991e49585f added unit test for dlopen source, and changed library variable name 2020-02-12 12:37:21 +00:00
Andrew Davis
a38a543fe3 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
0545c46fa3 Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
Andrew Davis
5e98373036 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
9ec9fc000f Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
Andrew Davis
c2ed0ddc75 Fix the python part 2020-02-12 12:37:21 +00:00
Andrew Davis
1d998984b2 Added python bindngs for library based source 2020-02-12 12:37:21 +00:00
amandalund
2f09b7ca85 Fixed some univariate/multivariate from_xml_element issues and updated unit tests 2019-05-22 19:26:15 -06:00
amandalund
489a03c648 Get value from either attribute or element when reading settings from XML 2019-04-25 20:07:53 -05:00
amandalund
8f48ecf7de Add method for generating settings from an XML file 2019-04-18 08:22:40 -05:00
Paul Romano
460452d4f7 Merge branch 'develop' into photon-alund 2018-03-11 13:10:00 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
94dd50422f Initial implementation of photon physics 2017-06-29 10:31:49 -05:00
Paul Romano
2622489b3b Read photon cross sections at XML-read time, support particle type in source 2017-06-29 10:31:49 -05:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Paul Romano
66d772da79 Refactor settings to use more CheckedLists. Rename all to_xml methods
to_xml_element
2016-08-01 10:37:00 -05:00
Paul Romano
c7a0b716d2 General cleanup -- both bugs and style issues -- based on running pylint 2016-07-02 11:04:25 +07:00
Paul Romano
148e01eec0 Address more comments on pull request #556. 2016-01-15 06:29:41 -06:00
Paul Romano
ea9fb637f6 Respond to @smharper comments on #556 2016-01-14 06:46:32 -06:00