Skip to content

Simulation performance optimization#23

Open
JanTopolewski wants to merge 31 commits intodatarabbit-ai:mainfrom
Rumeleq:frontend_better_cache
Open

Simulation performance optimization#23
JanTopolewski wants to merge 31 commits intodatarabbit-ai:mainfrom
Rumeleq:frontend_better_cache

Conversation

@JanTopolewski
Copy link
Collaborator

This PR includes:

  • a streamlit library cache used to ensure instant loading of previously calculated days, provided that there have been no changes among patients who agreed to come in early for treatment
  • an improved mechanism for updating queue positions in the database, which significantly speeds up the loading of simulation days

Rumeleq and others added 30 commits July 31, 2025 18:42
Changed the return type annotation of get_done_conversation_data from str to str | bool to reflect possible boolean return values.
Changed the return type of get_done_conversation_data to use GetConversationResponseModel for improved type safety. Also updated the import statement to include GetConversationResponseModel.
Split function signature and a long function call across multiple lines to improve code readability and maintainability. No functional changes were made.
Consolidated Streamlit session state variable initialization into a single loop for improved readability and maintainability. Removed redundant individual checks and assignments for each session state key.
Improved type annotations and default argument handling in patient queue functions in main.py. Added altair visualization library to requirements.txt.
This reverts commit 6b08891, reversing
changes made to 58ac4ed.
Refactored the bed grid to group beds into rooms with improved tooltip handling and updated the CSS for better layout and hover effects. Added Polish translations for 'Unoccupied' and 'Room' in the locale file.
Updated the create_box_grid function to wrap all user-facing strings with the translation function (_), ensuring that room, bed, tooltips, and personnel fields are translatable. Also replaced st.write with st.markdown for rendering room HTML, and removed debug print statements.
Replaces unordered bed row info with an ordered, localized mapping for tooltip display in the box grid. Ensures consistent header order and translation, and formats personnel fields appropriately.
@naibatsuteki naibatsuteki removed their request for review September 17, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants