make BudgetItem.freq a property
3 unresolved threads
3 unresolved threads
Compare changes
Files
3+ 3
− 3
@@ -44,8 +44,8 @@ def freq_from_spec(spec=None):
@@ -53,7 +53,7 @@ def freq_from_spec(spec=None):
@@ -154,7 +154,7 @@ def load_budget(name_or_path, freq=None, bname=None):
how do you think an AttributeError would be raised here? this should only ever be called on strings, and I don't think any of their attributes are relevant to the parsing here.
If
spec
is notnp.ndarray
and is notNone
, thenspec
is not a string when entering the try block.spec.split(':')
raises anAttributeError
in this case. This was also previously the case and I fixed it this way when updating the rest of the frequency specification. This could also be solved by adding an else case after the case thatspec
isNone
. Open to other suggestions.