Skip to content

AutoSAS UI#92

Merged
martintb merged 5 commits intomainfrom
autosas_web_ui
Mar 2, 2026
Merged

AutoSAS UI#92
martintb merged 5 commits intomainfrom
autosas_web_ui

Conversation

@martintb
Copy link
Collaborator

@martintb martintb commented Mar 2, 2026

This pull request introduces significant improvements to the AutoSAS fitting workflow and adds a new web application frontend. The main changes focus on increasing compatibility with different versions of the bumps library, improving robustness in parameter and covariance handling, and providing a modern, user-friendly web interface for model building, data loading, fitting, and result review.

Key changes include:

Robustness and Compatibility Improvements in Fitting Logic

  • Enhanced parameter bounds handling in _initialize_model to support both tuple and Bounded types, ensuring compatibility with multiple bumps versions and correcting bounds order if needed.
  • Improved fit method to handle the case where there are no free parameters, skipping unnecessary optimizer calls and initializing results accordingly.
  • Refined covariance matrix extraction and normalization to robustly handle differences across bumps versions, fallback gracefully, and always produce a square matrix for downstream use. [1] [2]
  • Made parameter error extraction in get_fit_params more robust to missing or malformed error vectors.

Improved Probability Calculations

  • Enhanced _calculate_probabilities to normalize and validate covariance matrices, handle edge cases (zero parameters, invalid determinants), and ensure numerical stability in log likelihood and probability calculations. [1] [2]

Remote Fitting and Data Handling Enhancements

  • Refactored _calculate_remote to support both direct dataset and Tiled entry ID-based workflows, allowing more flexible data sourcing and result retrieval from remote servers.

New Web Application Frontend

  • Added a new HTML template (autosas_webapp.html) providing a modern, tabbed interface for data loading, model building, fit execution, and result review.
  • Introduced a corresponding CSS stylesheet for the web app, delivering a clean, responsive, and user-friendly design.

These changes collectively make the fitting workflow more robust, user-friendly, and compatible with a wider range of environments, while introducing a new web-based interface for interactive use.

- Added support for handling parameter bounds in SASModel with compatibility for newer bumps versions.
- Implemented checks for free parameters to skip optimizer invocation when none are available.
- Improved covariance matrix handling in SASModel to ensure robustness across bumps versions.
- Enhanced chi-squared calculation and error handling in SASFitter.
- Updated AutoSASWebAppMixin to include sample index handling for model previews.
- Introduced modal for editing fit method JSON in the web app.
- Improved UI layout and styling for better user experience in the web app.
- Added functionality to clear data context and reset state in the web app.
- Enhanced JavaScript logic for managing model inputs and fitting processes.
@martintb martintb merged commit 24327d4 into main Mar 2, 2026
4 checks passed
@martintb martintb deleted the autosas_web_ui branch March 2, 2026 02:22
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