Commit graph

143 commits

Author SHA1 Message Date
yrrepy
63916067ee
Use huge_tree=True in lxml parsing (#2791)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-01-17 06:54:03 +00:00
Jonathan Shimwell
15a2199c0d
adding get_all_nuclides method to geometry class (#2796)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-12-12 22:58:17 +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
ffbf1b9917
Expose universe plotting for the geometry class (#2661) 2023-08-22 08:45:40 -05:00
Jonathan Shimwell
457bea6f0b
replaced ordereddict with {} (#2641)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-08-19 12:15:11 +00:00
Jonathan Shimwell
d47e9a1092
allowing geometry to be fully made via constructor (#2602)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-07-23 22:26:13 +00: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
Jonathan Shimwell
3ad8781444 Merge branch 'develop' into adding_bounding_box_class 2023-04-21 14:46:52 +01:00
Christina Cai
bdd34fc64d added deepcopy back in geometry.py 2023-04-19 14:21:12 -04:00
Paul Romano
b5d30ff553 Refactor BoundingBox implementation 2023-04-18 22:26:37 -05:00
christinacai123
293f02d991
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-04-18 13:46:57 -04:00
Christina Cai
5658cd88b1 Added xml.etree to first block of imports 2023-04-15 16:02:59 -04:00
christinacai123
c9a64e6fe0
Apply suggestions from code review
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-04-15 16:01:04 -04:00
Christina Cai
3692e7331f added return types for geometry.py 2023-04-12 14:41:14 -04:00
Paul Romano
7bbf5466e6 Add missing versionadded directives 2023-03-28 13:34:14 -05:00
Patrick Shriwise
461fd54f11 Updating doc strings 2023-02-16 13:53:57 -06:00
Paul Romano
54320f3011
Merge pull request #2347 from shimwell/adding_get_surfaces_by_name
added get_surfaces_by_name method to geometry
2023-01-12 14:30:54 +07:00
Jonathan Shimwell
2c9df1b77e
Apply typo fixes identified incode review by @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-01-11 09:32:02 +00:00
Jonathan Shimwell
a0afa5de44 added get_surfaces_by_name method 2023-01-10 19:04:12 +00:00
shimwell
577157b846 allowing xml file for materials 2022-12-24 22:40:34 +00:00
Patrick Shriwise
f3bcad37b7 Addressing comments from @paulromano 2022-12-12 21:30:05 -06:00
Patrick Shriwise
3f4a9eb7a2 Reordering geometry XML element attributes 2022-12-06 13:03:38 -06:00
Patrick Shriwise
b76825fa9f Addressing some comments from PR 2022-12-06 13:03:38 -06:00
Patrick Shriwise
d034e1de9c Apply suggestions from code review
Incorporating suggestions from @paulromano

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2022-12-06 13:03:38 -06:00
Patrick Shriwise
abd3d515b0 Correcting doc strings for material mapping sent to 2022-12-06 13:03:38 -06:00
Patrick Shriwise
2e716589a1 Other bug fixes 2022-12-06 13:03:38 -06:00
Patrick Shriwise
9391f17cff Adding import for single or multiple XMLs 2022-12-06 13:03:38 -06:00
Patrick Shriwise
2555b951a4 Factor out to_xml_element methods for XML classes 2022-12-06 13:03:38 -06:00
Ethan Peterson
1110038939 remove get_redundant_surfaces and cache 2022-11-08 21:04:15 -05:00
Ethan Peterson
f5f42a4c80
Update openmc/geometry.py
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2022-10-26 13:37:09 -04:00
Ethan Peterson
e8d3e14adf cache redundant_surfaces 2022-10-26 12:13:43 -04:00
Ethan Peterson
a46cafa7fe addressed @pshriwise comments 2022-10-26 09:41:03 -04:00
Ethan Peterson
33021f7af1 removed precision parameter 2022-10-26 09:41:03 -04:00
Ethan Peterson
4604c10da1 added attributes and warnings 2022-10-26 09:41:03 -04:00
Ethan Peterson
1ab2cbec40 revert to False because of failing tests 2022-10-26 09:41:03 -04:00
Ethan Peterson
a67b330d8f round and change default to True 2022-10-26 09:41:03 -04:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +01:00
Patrick Shriwise
a407c12aae
Update openmc/geometry.py
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2021-06-30 12:45:08 -05:00
Patrick Shriwise
ef70e12142 Enhancing to/from hdf5 methods so that DAGMC universes can be reproduced and exported to XML from a summary file. 2021-06-29 21:04:23 -05:00
Patrick Shriwise
e2826fa57b Adding a from_xml method to the DAGUniverse class. Ensuring DAGMC universes are read into geometries from XML files. 2021-06-29 17:54:57 -05:00
Patrick Shriwise
afaf3b04bf Updates to the Python API to support model generation with DAGMC universes. 2021-05-19 18:01:35 -05:00
Patrick Shriwise
d94710996f Abstracting the Python Universe class. Adding a DAGMC Universe. 2021-05-19 18:01:35 -05:00
Yue JIN
2ace13378c Examine if the region exists before removing redundant surfaces 2020-09-03 11:09:02 +08: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
Paul Romano
3e995e0df6 Changes in geometry.py from PullRequest Inc. review 2020-03-23 20:55:01 -05:00