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
Describe the bug
When changing the gain model in the st.config to a numpy array, you get an error that arrays are not JSON seriazable. When changing this array to a list you get an indexing error, since lists can not be indexed by arrays.
To Reproduce
Insert the MWE of how to reproduce the error
Supposed fix / workaround
Changing the way we load the gain model here to self.to_pe = np.array(self.gain_model) works. We could also make a type check beforehand.
The text was updated successfully, but these errors were encountered:
Describe the bug
When changing the gain model in the
st.config
to a numpy array, you get an error that arrays are not JSON seriazable. When changing this array to a list you get an indexing error, since lists can not be indexed by arrays.To Reproduce
Insert the MWE of how to reproduce the error
Supposed fix / workaround
Changing the way we load the gain model here to
self.to_pe = np.array(self.gain_model)
works. We could also make a type check beforehand.The text was updated successfully, but these errors were encountered: