Skip to content

Save peak detection inputs - #55

Merged
enryH merged 1 commit into
devfrom
save_peak_detection_inputs
Jul 17, 2026
Merged

Save peak detection inputs#55
enryH merged 1 commit into
devfrom
save_peak_detection_inputs

Conversation

@enryH

@enryH enryH commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

make

This pull request updates how user inputs for automatic peak detection are handled and persisted in the AutoGrowth/2_turbiostat.py file. The main improvements ensure that user-edited values for minimum peak height and minimum distance between peaks are properly saved and restored when navigating between pages, but only after an analysis has actually been run.

Persistence and restoration of peak detection parameters:

  • The values for minimum_peak_height and minimum_distance are now loaded from st.session_state if available, ensuring that previously entered values are restored when returning to the page.
  • After running the analysis, the current values of minimum_peak_height and minimum_distance are explicitly saved back to st.session_state, so they persist across page switches.

User input handling improvements:

  • The default values for the peak detection number inputs (minimum_peak_height and minimum_distance) now use the restored session state values, rather than always defaulting to None or 300.

These changes improve the user experience by ensuring that edits to peak detection parameters are not lost when navigating away and returning, but only after an analysis has been run.

@enryH
enryH merged commit 1b80647 into dev Jul 17, 2026
6 checks passed
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.

1 participant