Commit graph

115 commits

Author SHA1 Message Date
Paul Romano
c83b890869 Use ufloat for stochastic volume results 2018-03-19 10:40:45 -05:00
Paul Romano
ed7edf4141 Have Universe.plot return AxesImage. Add Plot.to_image method 2018-03-15 11:02:07 -05:00
Paul Romano
c428cee667 Remove __future__ and six imports 2018-02-05 23:14:30 -05:00
Paul Romano
1a93883b67 Add tests for openmc.Universe 2018-02-05 07:35:48 -06:00
Paul Romano
9aaa927222 Update Jupyter notebooks to remove use of openmc.Nuclide 2017-12-17 07:16:06 +07:00
Paul Romano
61bdb5b322 Remove __eq__ and __hash__ on geometry objects 2017-12-17 07:16:05 +07:00
Paul Romano
7b5f2bb821 Simple optimizations to Universe._determine_paths 2017-12-11 13:01:18 +07:00
Paul Romano
c3c9df6a85 Make Intersection and Union obey the mutable sequence protocol 2017-06-07 20:12:51 -05:00
Paul Romano
ca009e211e Manage unique IDs via new IDManagerMixin that uses class variables 2017-06-07 20:12:51 -05:00
Paul Romano
8b6abad60e Allow determine_paths() to be called only to get number of instances 2017-05-31 07:11:11 -05:00
Will Boyd
d5a6be95b5 Fixed issue in Universe.__eq__ per comment by @paulromano 2017-05-12 15:36:48 -04:00
Will Boyd
572000419d Simplified Universe equality operator per @paulromano suggestion 2017-05-12 08:29:01 -04:00
Will Boyd
822008bf58 Fixed OpenMOC compatiblity for generic planar surfaces; fixed OpenMOC-MC lattice universes conversion 2017-05-11 14:04:58 -04: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
Paul Romano
b8f6575cc4 Some bug fixes for volume calculations 2017-03-11 14:31:02 -06:00
Paul Romano
f342b2a93d Change 'center' argument of Universe.plot to 'origin' 2017-03-10 09:54:58 -06:00
Paul Romano
f805fddb6b Handle unbounded universe 2017-03-09 15:48:23 -06:00
Paul Romano
9dec183b53 Replace use of matplotlib.colors with _SVG_NAMES dictionary 2017-03-08 15:18:47 -06:00
Paul Romano
70ce242ed7 Allow string colors in Universe.plot() 2017-03-08 14:24:41 -06:00
Paul Romano
61f0138555 Add Plot.from_geometry() classmethod 2017-03-08 14:24:41 -06:00
Paul Romano
3913d55e2c Allow color names, rename Plot attributes, add openmc.plot_inline() 2017-03-08 14:24:37 -06:00
Paul Romano
2d1897a051 Remove offsets, distribcell_index, distribcell_paths 2017-03-06 12:36:48 -06:00
Paul Romano
4cd527cb16 Rewrite Geometry.get_cell_instance -> Geometry.get_instance 2017-03-06 12:36:48 -06:00
Paul Romano
3754a2c173 Add back cell ID in last level for path 2017-03-06 12:36:48 -06:00
Paul Romano
30a613c3b6 Fix pandas dataframes 2017-03-06 12:36:48 -06:00
Paul Romano
9b7c2fd413 Make sure distribcell paths match those in summary file 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
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
7ca46e809c Make get_all_* methods consistent -- always return dict 2017-02-23 07:39:28 -06:00
Paul Romano
01254d0b3d Make Universe, Lattice, and Material.from_hdf5 methods 2017-02-22 17:00:25 -06:00
Paul Romano
357aa894c8 Get rid of WRITTEN_IDS global variable 2016-12-14 06:58:45 -06:00
Sterling Harper
daa6b9a10b Link Universe.plot docstring to matplotlib docs 2016-11-08 18:20:08 -05:00
Sterling Harper
df1d82708e Make Universe.plot pass kwargs to matplotlib 2016-11-08 13:16:20 -05:00
Sterling Harper
eca70ba3df Fix PyAPI plot pixels bug; add aspect ratio 2016-11-03 16:49:10 -04:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -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
108d8c835b Add colors and filename argument to Universe.plot 2016-05-31 12:53:12 -05:00
Paul Romano
e3c927b021 Fix use of fill_type in universe module 2016-05-31 09:41:15 -05:00
Paul Romano
08b8082b7b First round of fixes for @wbinventor comments on #656 2016-05-29 10:20:11 -05:00
Paul Romano
e40a369693 Add geometry plotting capability and restructure lattice attributes 2016-05-27 09:53:07 -05:00
Paul Romano
838f84c963 Respond to @wbinventor comments on #642 2016-05-09 08:33:18 -05:00