jkanner / pe-viewer

A web app to make plots of posterior samples, skymaps, and waveforms for gravitational wave events.
1 stars 3 forks source link

Add button to clear cache #83

Closed jkanner closed 7 months ago

jkanner commented 8 months ago

Info on how to do this, here:

https://docs.streamlit.io/library/api-reference/performance/st.cache_data

if st.button("Clear All"):
    # Clear values from *all* all in-memory and on-disk data caches:
    # i.e. clear values from both square and cube
    st.cache_data.clear()
jkanner commented 7 months ago

Consider also adding a try/except clause for skymap generation, to guard against errors on the GWTC-1 case.

jkanner commented 7 months ago

Addressed in PR #84