mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Attributes listed in doc strings but missing from properties
After getting an error "XSdata has no attribute 'beta'", I saw that beta, decay_rate, and inverse_velocity were listed as attributes in XSdata, but were not included in the @properties. Just added them. Also noticed there doesn't seem to be a test for this class.
This commit is contained in:
parent
a2134ffa10
commit
8f0629b133
1 changed files with 12 additions and 0 deletions
|
|
@ -349,6 +349,18 @@ class XSdata:
|
|||
def chi_delayed(self):
|
||||
return self._chi_delayed
|
||||
|
||||
@property
|
||||
def beta(self):
|
||||
return self._beta
|
||||
|
||||
@property
|
||||
def decay_rate(self):
|
||||
return self._decay_rate
|
||||
|
||||
@property
|
||||
def inverse_velocity(self):
|
||||
return self._inverse_velocity
|
||||
|
||||
@property
|
||||
def num_orders(self):
|
||||
if self._order is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue