The SeismoLoaderSettings is a pydantic model. A couple of its properties such as catalogs and inventories are obspy objects. This seems not to be serializable. We serialize SeismoLoaderSettings to cache requests and avoid re-requesting the same thing. See below for example:
where the input settings_json_str is the serialized form of SeismoLoaderSettings. (Note that streamlit cannot directly cache a complex object such as pydantic. That is why we try to pass the serialized obj.)
The SeismoLoaderSettings is a pydantic model. A couple of its properties such as catalogs and inventories are obspy objects. This seems not to be serializable. We serialize SeismoLoaderSettings to cache requests and avoid re-requesting the same thing. See below for example:
where the input
settings_json_str
is the serialized form ofSeismoLoaderSettings
. (Note that streamlit cannot directly cache a complex object such as pydantic. That is why we try to pass the serialized obj.)