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
Paul Romano
cf6b67c05d
Remove explicit inheritance from object for Python classes
2020-03-23 12:12:31 -05:00
Sterling Harper
f1bb96eaef
Merge pull request #1381 from GiudGiud/PR_recursive_LNS
...
Lattice discretization with degenerate and recursive local neighbor symmetry algorithms
2020-01-28 18:22:45 -05:00
Ethan Peterson
55fab15b9a
Implementing duplicate surface detection and removal
...
Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
Co-Authored-By: Patrick Shriwise <pshriwise@gmail.com>
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
2020-01-20 09:45:44 -05:00
Giud
5c14652fe2
Merge branch 'develop' into PR_recursive_LNS
2019-12-06 01:24:29 -05:00
Patrick Shriwise
2761bdbf0e
Passing empty memo set directly and using object instances instead of ids in the memo.
2019-11-08 14:20:03 -06:00
Patrick Shriwise
8478a577e3
Correcting return type in Geometry object and making get_all_cells/get_all_materials consistent there.
2019-11-07 14:58:31 -06:00
Patrick Shriwise
c5cef78ade
Adding memo for get_all_cells/get_all_materials.
2019-11-07 14:57:09 -06:00
Patrick Shriwise
1308dc9f38
Removing whitespace
2019-11-01 07:54:44 -05:00