Commit graph

74 commits

Author SHA1 Message Date
Paul Romano
59c398be84
Consolidate plotting capabilities in Model.plot (#3282)
Co-authored-by: Jonathan Shimwell <drshimwell@gmail.com>
2025-01-31 10:12:24 -06:00
Paul Romano
91fd60be69
Immediately resolve complement operators for regions (#3145) 2024-10-10 12:58:15 -05:00
Paul Romano
55b52b7ef3
Release of version 0.15.0 (#3050) 2024-06-22 01:28:56 +00:00
Paul Romano
b54b1e975c
Update bounding_box docstrings (#2972) 2024-04-24 08:02:05 -05:00
Patrick Shriwise
4ba053ca47
Generate Region Plots Directly (#2895)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2024-04-12 16:03:19 +00:00
Paul Romano
ac941f79e0
Add RectangularPrism and HexagonalPrism composite surfaces (#2739)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
2023-11-01 09:13:40 -05:00
Paul Romano
f82bdaa718
Bug fix in Region.from_expression during tokenization (#2733) 2023-10-20 10:04:05 -04:00
Patrick Shriwise
bd1c2286f8
Make BoundingBox a mutable type and add convenience methods. (#2717)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
2023-10-17 17:51:05 +00:00
Paul Romano
0cf29f1459
Add type checks on Intersection, Union, Complement (#2685) 2023-09-13 12:49:38 -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
Paul Romano
b5d30ff553 Refactor BoundingBox implementation 2023-04-18 22:26:37 -05:00
Jonathan Shimwell
6eb26b80c6 implemented BoundingBox class 2023-04-14 13:11:01 +01:00
Paul Romano
02f1815299 Add missing versionadded directives 2022-08-15 13:20:59 -05:00
Paul Romano
a27d0e079f Allow inplace argument on Region.translate 2022-07-20 22:43:20 -05:00
Paul Romano
0e38755a0e Region expression: ensure halfspace followed by ( results in implicit & operator 2022-06-09 12:17:15 -05:00
Paul Romano
f9ba350e1c Add fix for Region.from_expression case with )( 2022-03-28 13:04:09 -05:00
Jonathan
04b5f4bc97 fixed minor typo in docs 2022-02-10 00:20:58 +00:00
Jonathan Shimwell
192f4436a0 replaced .format with f string 2021-07-29 18:25:37 +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
d5b54e8cb5 Consistent use of ABC instead of ABCMeta where possible 2020-04-01 14:13:05 -05:00
Paul Romano
e34a71b448 Remove unused imports across entire Python API 2020-03-31 18:11:31 -05:00
Paul Romano
ba9c3cada3 Remove __ne__ methods (default is correct in Python 3) 2020-03-25 06:55:20 -05:00
Ethan Peterson
c88bd49597 finished unit tests 2020-02-27 12:31:15 -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
Paul Romano
d85df13ae7 Make surfaces take coefficients as first arguments 2019-09-04 15:10:53 -05:00
Paul Romano
325f9fcf72 Use lower-case argument names for surfaces consistently 2019-03-08 11:25:26 -06:00
Paul Romano
0f2a4f9eeb Make clear that memo argument to Region.translate is internal 2019-03-07 09:43:43 -06:00
Paul Romano
394ac75560 Add translate methods to surfaces and regions 2019-03-06 15:38:26 -06:00
amandalund
c443208e21 Generate sphere packing container from openmc.Region 2018-11-14 16:04:30 -06:00
Paul Romano
d3d6dc87dc Remove a few more __future__ imports. Use collections.abc 2018-02-05 23:14:30 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
d26165f524 Add tests for regions 2018-02-05 07:35:18 -06:00
Paul Romano
c3c9df6a85 Make Intersection and Union obey the mutable sequence protocol 2017-06-07 20:12:51 -05:00
Will Boyd
400b5e2c1d Added __hash__ method to Surface class; revised clone methods memo param to use objects as keys 2017-04-10 17:17:17 -04:00
Will Boyd
120dca7703 Renamed clone memoize param as memo per request by @paulromano 2017-04-10 12:10:34 -04:00
Will Boyd
12a0e00305 Expanded docstrings for all clone methods 2017-04-10 10:13:59 -04:00
Will Boyd
364543b967 Now use memoization for geometry and materials cloning 2017-04-10 10:06:32 -04:00
Will Boyd
45af8a2937 Tested geometry cloning with examples and fixed a few bugs 2017-04-09 22:23:49 -04:00
Will Boyd
06a918c1b5 First stab at implementing clone() methods for geometric and material primitives 2017-04-09 16:30:33 -04:00
tjlaboss
781d0aa976 Renamed back to 2017-03-30 14:10:15 -04:00
tjlaboss
95d644f711 Merge branch 'get_surfs' of github.com:tjlaboss/openmc into get_surfs 2017-03-30 14:09:12 -04:00
tjlaboss
e4984311c3 Renamed update_surfaces back to get_surfaces 2017-03-30 14:08:38 -04:00
tjlaboss
5cc6e6a684 Changed if statement for surfaces
Corrected `if not surfaces` to `if surfaces is None`
2017-03-30 14:06:17 -04:00
tjlaboss
a01b87d628 Reverted rename of get_surfaces() 2017-03-30 14:03:17 -04:00
tjlaboss
fc23007dae Changed get_surfaces() to update_surface()
As per @paulromano's suggestion, renamed the method of
the `Region` class that updates the surface dictionary.
2017-03-30 13:37:12 -04:00
tjlaboss
30548c7c80 Addressed comments by @wbinventor 2017-03-30 13:34:51 -04:00
tjlaboss
2525c2a3f8 Accounted for surfaces from a Complement(). 2017-03-29 20:05:26 -04:00
tjlaboss
a002e58ee8 Addressed changes suggested by @paulromano 2017-03-29 20:01:18 -04:00
Paul Romano
61f0138555 Add Plot.from_geometry() classmethod 2017-03-08 14:24:41 -06:00