Skip to content

Commit

Permalink
add error message for empty iir_params to partially address simonsobs…
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael McCrackan authored and susannaaz committed Dec 9, 2024
1 parent 5f4dc47 commit 9bad916
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sotodlib/tod_ops/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ def iir_filter(freqs, tod, b=None, a=None, fscale=1., iir_params=None,
sub_iir_params['fscale'] != _fscale,])):
raise ValueError('iir parameters are not uniform.')
iir_params = sub_iir_params
# check if iir_params from axis manager are None
if iir_params['a'] is None or iir_params['b'] is None:
raise ValueError('axis manager iir parameters are empty')
try:
a = iir_params['a']
b = iir_params['b']
Expand Down

0 comments on commit 9bad916

Please sign in to comment.