mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Removed StatePoint.with_summary property
This commit is contained in:
parent
bd841a268f
commit
3d9353b086
3 changed files with 3 additions and 7 deletions
|
|
@ -396,7 +396,7 @@ class Library(object):
|
|||
|
||||
cv.check_type('statepoint', statepoint, openmc.StatePoint)
|
||||
|
||||
if not statepoint.with_summary:
|
||||
if statepoint.summary is None:
|
||||
msg = 'Unable to load data from a statepoint which has not been ' \
|
||||
'linked with a summary file'
|
||||
raise ValueError(msg)
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ class MGXS(object):
|
|||
|
||||
cv.check_type('statepoint', statepoint, openmc.statepoint.StatePoint)
|
||||
|
||||
if not statepoint.with_summary:
|
||||
if statepoint.summary is None:
|
||||
msg = 'Unable to load data from a statepoint which has not been ' \
|
||||
'linked with a summary file'
|
||||
raise ValueError(msg)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import sys
|
||||
mport sys
|
||||
import re
|
||||
import numpy as np
|
||||
|
||||
|
|
@ -449,10 +449,6 @@ class StatePoint(object):
|
|||
def summary(self):
|
||||
return self._summary
|
||||
|
||||
@property
|
||||
def with_summary(self):
|
||||
return False if self.summary is False else True
|
||||
|
||||
@sparse.setter
|
||||
def sparse(self, sparse):
|
||||
"""Convert tally data from NumPy arrays to SciPy list of lists (LIL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue