hsma-programme / Teaching_DES_Concepts_Streamlit

A streamlit app (running from github pages using the stlite package) for teaching concepts of discrete event simulation, including animated entity flow plots created in Plotly. IMPORTANT NOTE: Works in Chrome, Edge or Safari - not Firefox.
https://hsma-programme.github.io/Teaching_DES_Concepts_Streamlit/
MIT License
10 stars 5 forks source link

Investigate crash on 'optional step' page on device with 4gb RAM #9

Closed Bergam0t closed 1 year ago

Bergam0t commented 1 year ago

iOS Device with 4gb of RAM runs all models quite quickly and is responsive overall, including being able to cope with multiple models stored in the scenario comparison tab.

However, when running the 'optional step' page, the outputs load in briefly before the page appears to crash, with the 404 page briefly showing before being redirected to the playground landing page.

Explore whether there is something specific about this page that is using more memory than others.

Bergam0t commented 1 year ago

Fixed - this was a bug in the logging code for the simple_with_branch model where the pathway was incorrectly recorded and was leading to odd grouping, so the dataframe was far larger than it should have been as rows continued to be generated for patients after they had left. Fixing this has significantly improved loading times for this page on other devices too.