Commit graph

34 commits

Author SHA1 Message Date
wbinventor@gmail.com
7be1b7a609 Now using hash(repr(self)) instead of hash(str(self)) in Python API 2015-12-01 10:13:37 -05:00
wbinventor@gmail.com
f09ec9582b Shortened FIXME block in Material.__eq__ 2015-11-29 09:06:25 -05:00
wbinventor@gmail.com
4be3c64da9 Added __hash__ routines to all Python classes based on __repr__ methods 2015-11-29 09:00:47 -05:00
wbinventor@gmail.com
8c0d269843 Commented out material density and nuclides comparision on __eq__ - need to confer with @paulromano on how to properly implement this 2015-11-25 13:44:20 -05:00
wbinventor@gmail.com
fca533e3d1 Added __eq__ and __ne__ method to Cell, Universe, Lattice and Material classes in Python API 2015-11-25 12:45:57 -05:00
Will Boyd
baa0b4c10c Now using a "data" descriptor rather than "ace" for the nuclide/element scattering XML tag 2015-11-09 09:26:48 -05:00
Will Boyd
81116a2049 Elements can now use iso-in-lab scattering in adddition to Nuclides 2015-11-08 17:34:04 -05:00
Will Boyd
151fa4d479 Refactored iso-in-lab scattering in physics.F90 to consolidate within scattering routine 2015-11-08 16:57:29 -05:00
Will Boyd
0a0c4c4d5f Merged with develop 2015-11-08 16:01:03 -05:00
Will Boyd
857a2c5734 All object names in Python API now initialized to an empty string 2015-11-03 10:19:42 -05:00
Paul Romano
50c411acfa Add Material.__deepcopy__ method 2015-10-30 07:20:37 -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
b9a439da11 Python API now allows IDs to be greater than or equal to zer 2015-10-12 23:16:45 -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
54f40eed32 Moved Python builtin routines to beginning of each Python API class 2015-10-08 14:23:19 -04:00
Will Boyd
c4b14a5ef8 Merge branch 'mgxs' into iso-lab 2015-10-06 13:11:57 -04:00
Paul Romano
82b2cda0f6 Merge pull request #469 from smharper/pyapi_tests
Tests built with Python API
2015-10-05 07:49:10 +07:00
Sterling Harper
8030112938 Use OrderedDict for material nuclides in PyAPI 2015-10-03 00:41:42 -04:00
Will Boyd
78d14133db Updated OpenCG compatiblity module to reflect move to PEP8 use of underscores in place of camelCase 2015-10-02 01:25:41 -04:00
Will Boyd
f5374974e6 Merged with develop 2015-09-05 17:58:17 -04:00
Will Boyd
547acb2ecc Removed extraneous quotes in __repr__ methods 2015-08-04 21:36:18 -07:00
Will Boyd
d0afb964b7 Removed quotations around string args in __repr__ methods 2015-08-03 21:48:45 -07:00
Will Boyd
bf15c255c3 Added double quotes around exception msgs in Python API 2015-08-03 21:32:06 -07:00
Sterling Harper
cd4fa9a649 Fix 'atom/b-cm' density type in PyAPI 2015-08-03 21:55:08 -06:00
Will Boyd
4e6aca6028 Fixed merge conflicts with develop 2015-07-26 16:09:15 -07:00
Paul Romano
06d531aa39 Add check_greater_than and check_less_than functions 2015-06-30 16:19:53 +07:00
Paul Romano
98206be1fe Use collections.Iterable rather than collections.Sequence. Unfortunately
ndarrays are not sequences.
2015-06-29 07:50:07 +07:00
Paul Romano
a7a740d08c Add check_type, check_length, and check_value functions that reduce redundancy 2015-06-29 07:50:07 +07:00
Paul Romano
5aaf9974e9 Use collections.Sequence, numbers.Real, and numbers.Integral for checking for
appropriate types. This eliminates the checkvalue module.
2015-06-29 07:50:07 +07:00
Paul Romano
1a215cd087 Indicate in docstrings that ids will be assigned automatically for surfaces,
cells, and materials.
2015-06-26 21:15:23 +07:00
Paul Romano
528880cd45 Various PEP8 fixes. Mostly using 'is not' and 'not in'. 2015-06-15 10:51:07 +07:00
Paul Romano
7ed1dd17e6 Adding docstrings and updated the element, executor, filter, geometry, material,
mesh, and nuclide modules.
2015-06-12 22:04:56 +07:00
Will Boyd
2c7e16cab2 Merge branch 'develop' into iso-lab 2015-06-01 05:58:55 -07:00
Paul Romano
498e07d0bf Move Python API into openmc/ directory and move Python scripts into scripts/
directory.
2015-05-31 09:26:18 +07:00
Renamed from src/utils/openmc/material.py (Browse further)