Adding check that energy bounds are set

This commit is contained in:
Patrick Shriwise 2022-03-11 11:56:15 -06:00
parent 4cd9b585f4
commit a76bd56ecd

View file

@ -192,6 +192,8 @@ class WeightWindows(IDManagerMixin):
@property
def num_energy_bins(self):
if self.energy_bounds is None:
raise ValueError('Energy bounds are not set')
return self.energy_bounds.size - 1
@property