Commit graph

154 commits

Author SHA1 Message Date
tjlaboss
9fcdd5e046 Wrote method Geometry.get_all_surface()
A method in the vein of `Geometry.get_all_cells()`
2017-03-28 17:50:29 -04:00
Paul Romano
d938fa0176 Fix bugs discovered during CNL workshop 2017-03-19 21:41:54 -05:00
Paul Romano
b8f6575cc4 Some bug fixes for volume calculations 2017-03-11 14:31:02 -06:00
Paul Romano
61f0138555 Add Plot.from_geometry() classmethod 2017-03-08 14:24:41 -06:00
Paul Romano
b87f2d6cd7 Make Geometry.get_instances accept iterables. Don't autocalculate paths 2017-03-07 10:48:38 -06:00
Paul Romano
cda58c9e8f Address @wbinventor comments on #821 2017-03-06 19:59:46 -06:00
Paul Romano
4cd527cb16 Rewrite Geometry.get_cell_instance -> Geometry.get_instance 2017-03-06 12:36:48 -06:00
Paul Romano
d22f10d60e Automatically determine paths when root_universe is assigned. 2017-03-06 12:36:48 -06:00
Paul Romano
fd7fa59192 Implement distributed paths 2017-03-06 12:36:48 -06:00
Will Boyd
c6348700ce Refactored cell/material instance counting into recursive methods defined on Universe class per request by @paulromano 2017-03-06 12:36:48 -06:00
Will Boyd
ddb72466c7 Cell and material counting now works for PyAPI with HexLattice 2017-03-06 12:36:48 -06:00
Will Boyd
3122d0798f Began adding code to count material instances 2017-03-06 12:36:48 -06:00
Will Boyd
3bed097f1b Added Cell.num_instances property and Geometry.count_cell_instances() method 2017-03-06 12:36:48 -06:00
Paul Romano
8be6a58603 Relax restriction that root universe have ID=0. 2017-03-06 12:36:48 -06:00
Paul Romano
d084b718f0 Fix Geometry.get_all_lattices() and Geometry.get_all_material_universes() 2017-03-04 00:25:30 -06:00
Paul Romano
cfb6339698 Change how volume is stored 2017-02-23 22:23:00 -06:00
Paul Romano
acdf287c01 Allow volume information to be added to materials and universes 2017-02-23 22:21:53 -06:00
Paul Romano
e40c89b34f Address a few more @wbinventor comments. Fix Jupyter notebooks. 2017-02-23 09:43:00 -06:00
Paul Romano
7ca46e809c Make get_all_* methods consistent -- always return dict 2017-02-23 07:39:28 -06:00
Paul Romano
357aa894c8 Get rid of WRITTEN_IDS global variable 2016-12-14 06:58:45 -06:00
Paul Romano
fbcb15f8c5 Simplify usage of DataLibrary.register_file() 2016-09-23 06:26:33 -05:00
Paul Romano
0fcc44bedb Fix specification of material temperature. Allow XML files to be exported to
non-default paths.
2016-09-13 23:16:10 +02:00
Paul Romano
a5763ae599 Refactor volume calculation to allow material/universe volumes as well 2016-08-08 16:14:17 -05:00
Paul Romano
af27542af5 Fix a few docstrings 2016-08-01 21:48:02 -05:00
Paul Romano
08c9036bb6 Ability to link volume calculation results in order to compute microscopic cross
sections from mgxs
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
2b219ae15f Refactor handling of cell fill types. Fix Geometry.get_* methods 2016-05-31 08:43:34 -05:00
Paul Romano
08b8082b7b First round of fixes for @wbinventor comments on #656 2016-05-29 10:20:11 -05:00
Paul Romano
eb3f888c89 Allow root_universe to be passed to Geometry constructor 2016-05-27 09:53:07 -05:00
Paul Romano
e40a369693 Add geometry plotting capability and restructure lattice attributes 2016-05-27 09:53:07 -05:00
Paul Romano
50a80693b5 Rename main Python API classes to get rid of File. 2016-04-25 10:37:06 -05:00
Paul Romano
14dc134869 Complete overhaul of Python API documentation 2016-04-14 07:22:31 -05:00
Will Boyd
30641c5d37 Fixed small bug in first/last distribcell paths printed to summary; updated Python API to handle distribcell paths 2016-03-22 18:35:31 -04:00
wbinventor@gmail.com
a4d20444f8 Fixed code per comments by @paulromano 2016-03-02 11:35:26 -05:00
wbinventor@gmail.com
d66556a637 Addressed comments by @samuelshaner 2016-02-26 19:44:03 -05:00
wbinventor@gmail.com
c6c3ff74dc Fixed issues with object retrieval by name from Geometry in Python API 2016-02-20 12:28:21 -05:00
wbinventor@gmail.com
988105dbc3 Fixed Geometry object getter methods to reflect changes in last commit 2016-02-19 13:10:20 -05:00
wbinventor@gmail.com
128f25fe2b Added methods to Python APIs Geometry class to extract objects by string name 2016-02-18 00:45:49 -05:00
Sterling Harper
60732fd7df Enable distributed materials in PyAPI 2016-01-09 19:36:53 -05:00
Sterling Harper
bae0ad7136 Small fixes for #538 2016-01-04 18:25:59 -05:00
Sterling Harper
7fea70650f Improve geometry.get_cell_instance docstring 2016-01-03 13:44:42 -05:00
Sterling Harper
33375dfa30 Small fixes for #538 2015-12-30 16:45:51 -05:00
Sterling Harper
56e8e7d681 Update PyAPI with distribcell changes 2015-12-29 16:54:35 -05:00
Will Boyd
c2a29a607d Python API now clears xml element trees before exporting to xml 2015-10-27 17:36:24 -04:00
Will Boyd
b92aaf5d10 All sorting of materials/cells/universes is now done by ID in Python API 2015-10-21 00:28:41 -04:00
Will Boyd
9bc0e8e843 Made the GeometryFile.create_xml_file() clear the WRITTEN_IDS global dict 2015-10-12 11:11:15 -04:00
Will Boyd
bfdcc1eabd Now using all OrderedDicts in Python API for input reproducibility. Added tests for MGXS Library with/without nuclides 2015-10-11 02:07:29 -04:00
Will Boyd
bf15c255c3 Added double quotes around exception msgs in Python API 2015-08-03 21:32:06 -07:00
Sterling Harper
57a82f80dc Fix Python API length checking for hex lat pitch 2015-07-08 21:52:58 -06:00
Paul Romano
a7a740d08c Add check_type, check_length, and check_value functions that reduce redundancy 2015-06-29 07:50:07 +07:00