Commit graph

49 commits

Author SHA1 Message Date
Paul Romano
deab4b3d33 Use empty-argument form of super() 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
ee2f7e925f Make Nuclide, Element, and Macroscopic subclasses of str 2017-12-17 07:16:06 +07:00
Paul Romano
f722d57ca3 Change input format for isotropic-in-lab scattering 2017-12-17 07:16:06 +07:00
Paul Romano
d0faebe11d Update documentation 2017-07-31 08:18:55 -05:00
Adam Nelson
995ba26694 Moved plotting and calculate_xs routines to plotter, condensed code as needed. 2016-11-11 21:58:31 -05:00
Adam Nelson
d4f4166ba7 resolved most of the comments from @samuelshaner 2016-11-11 20:37:03 -05:00
Adam Nelson
2a50aff588 Pre-PR cleanup and addition of ability to read MT in types 2016-11-11 15:20:40 -05:00
Adam Nelson
240028d13d Added ability to provide an axis to the plot_xs routines, and added a type for slowing-down power so we can plot moderating ratios. Why not right? 2016-11-11 14:50:24 -05:00
Adam Nelson
4fe275b381 Code and resultant plot cleanup; also ensured every plot type explicitly included MT=2 so that S(a,b) data could properly be spliced in 2016-11-11 06:22:38 -05:00
Adam Nelson
7524637e23 Added kwargs to plots, switched to taking a file string for the cross_sections.xml file instead of an initialized DataLibrary, and avoided precision issues when calculating the inelastic xs 2016-11-11 05:20:38 -05:00
Adam Nelson
76991a223f Extended plots to elements and nuclides 2016-11-09 18:10:41 -05:00
Sam Shaner
062a52928f removed unnecessary import openmc in nuclide.py 2016-10-31 12:31:22 -04:00
Sam Shaner
33ce3fe130 removed unnecessary import itertools in nuclide.py 2016-10-31 12:30:23 -04:00
Sam Shaner
a042ff60ed addressed PR comments 2016-10-25 20:54:56 -04:00
Sam Shaner
b0a5be1c1c updated documentation and comments in Python API 2016-10-24 09:12:57 -04:00
Sam Shaner
2b8c0d4561 Merge remote-tracking branch 'upstream/develop' into element-wo 2016-10-19 13:37:29 -04:00
Sam Shaner
f059475bca removed enrichment from Fortran code and embedded in Python API 2016-10-17 21:09:38 -04:00
Paul Romano
5a126d086e Use six.string_types instead of basestring 2016-10-06 21:55:12 -05:00
Paul Romano
a95266ab22 Major refactor to include cross sections at multiple temperatures within the
Nuclide and SAlphaData derived types.
2016-08-31 10:13:38 -05:00
Adam Nelson
dfe2420b4a Updated pyapi and docs to support new default_temperature/temperature and lack of default_xs/xs 2016-08-21 14:36:58 -04:00
Will Boyd
2840583190 Fixed nuclide renaming bug 2016-08-11 23:00:59 -04:00
Will Boyd
cdb882648a Now printing a UserWarning in place of a DeprecationWarning for nuclide renaming 2016-08-11 22:27:53 -04:00
Will Boyd
531a172607 Now appending metatable suffix to nuclide names per suggestion by @paulromano 2016-08-11 22:21:40 -04:00
Will Boyd
12c8672804 Reworded nuclide de-hyphen deprecation warning message 2016-08-11 12:20:02 -04:00
Will Boyd
8bc7afe91f Fixed bug in Nuclide hyphen strip 2016-08-11 11:48:21 -04:00
Will Boyd
043c56f338 Now track OpenCG lattice names. Now strip hyphens on nuclide names 2016-08-11 11:31:29 -04:00
Paul Romano
e19291118e Refactor use of ACE tables to generate neutron/thermal scattering data 2016-07-14 15:19:52 -05:00
Paul Romano
b483cfe0b6 Respond to @wbinventor comments on #679 2016-07-02 15:21:58 +07:00
Paul Romano
c7a0b716d2 General cleanup -- both bugs and style issues -- based on running pylint 2016-07-02 11:04:25 +07:00
wbinventor@gmail.com
077eff7f19 Fixed some bugs in tally merging with introduction of comparison operators for filers and nuclides 2016-02-07 13:24:14 -05:00
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
4be3c64da9 Added __hash__ routines to all Python classes based on __repr__ methods 2015-11-29 09:00:47 -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
3e34c5882c Now using property getters in Nuclide and Element __repr__ routines 2015-11-08 17:36:59 -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
a11ccce8a3 Changed isotropic in lab scattering tag to iso-in-lab 2015-11-08 16:06:34 -05:00
Will Boyd
0a0c4c4d5f Merged with develop 2015-11-08 16:01:03 -05: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
Will Boyd
fe16bb4b10 Fixed tiling/repeating for tally arithmetic needed for micro xs in Python API 2015-09-27 00:29:46 -04:00
Will Boyd
08ad9d7425 Removed remaining errant merge conflict metadata from nuclide.py 2015-07-26 17:59:11 -07:00
Will Boyd
4e6aca6028 Fixed merge conflicts with develop 2015-07-26 16:09:15 -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
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/nuclide.py (Browse further)