You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In find_excluded_lbrange, minwave=3 input cannot be passed through as keyword in fit_spec.
So when there are masked values but not consecutive, i.e. std<=0, find_excluded_lbrange function is triggered. But the minwave determined that lines are not needed to be masked. So an empty array [] is returned.
So in linelist.py`` if exlbrange is not None is False, thus an empty array is passed on to for exlb in exlbs: triggering an error.
A quick fix is to add:
if excluded_lbrange is not None:
if len(excluded_lbrange)==0: excluded_lbrange = None
after line 609 in line_fitting.py
The text was updated successfully, but these errors were encountered:
In
find_excluded_lbrange
,minwave=3
input cannot be passed through as keyword in fit_spec.So when there are masked values but not consecutive, i.e. std<=0,
find_excluded_lbrange
function is triggered. But theminwave
determined that lines are not needed to be masked. So an empty array[]
is returned.So in
linelist.py`` if exlbrange is not None
isFalse
, thus an empty array is passed on tofor exlb in exlbs
: triggering an error.A quick fix is to add:
after line 609 in line_fitting.py
The text was updated successfully, but these errors were encountered: