Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the
AutoSASfitting workflow and adds a new web application frontend. The main changes focus on increasing compatibility with different versions of thebumpslibrary, 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
_initialize_modelto support both tuple andBoundedtypes, ensuring compatibility with multiple bumps versions and correcting bounds order if needed.fitmethod to handle the case where there are no free parameters, skipping unnecessary optimizer calls and initializing results accordingly.get_fit_paramsmore robust to missing or malformed error vectors.Improved Probability Calculations
_calculate_probabilitiesto 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
_calculate_remoteto 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
autosas_webapp.html) providing a modern, tabbed interface for data loading, model building, fit execution, and result review.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.