-
Notifications
You must be signed in to change notification settings - Fork 7
230 add tabluar output from solution analysis #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
230 add tabluar output from solution analysis #250
Conversation
|
I feel like |
|
Agreed about your SolutionAnalysisAttribute proposal. Once this is ready you can tag @arhowe00 for review please, since he will work on OpenwaterHealth/SlicerOpenLIFU#98 (feel free to tag for review without fixing the units tests or whatever is failing, we can look at that after and handle it) We have the tabular output working in SlicerOpenLIFU by the way (in one of Andrew's topic branches I think), but it shows raw floats with full precision, so this will help to format things! |
|
Oh I wrote that before realizing you've already tagged me to review. Bringing in Andrew 😄 |
192a918 to
b8826e0
Compare
|
@peterhollender FYI I rebased to main because there were some merge conflicts. Still working on review |
b8826e0 to
e9a5351
Compare
d8f8ed1 to
14c3128
Compare
arhowe00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rebased this to the main branch and looked at the changes. For the most part, things make sense, there were some changes I made to satisfy the linter (some of these were more important than others, like passing a list to a tuple). There were some things that needed imports, such as PARAM_STATUS_SYMBOLS, etc.
If you want @peterhollender I can apply most of these changes in batch, just reply to what you think about each of them if you have any points of contention and I'll decide what to commit based on that.
Addresses comments on [SlicerOpenLIFU PR#250 review](#250 (review))
c7de2ed to
579bf96
Compare
Adds suggestions made in [a review of SlicerOpenLIFU PR#250](#250 (review))
c4364fe to
7aeeee5
Compare
Addresses comments on [SlicerOpenLIFU PR#250 review](#250 (review))
Adds suggestions made in [a review of SlicerOpenLIFU PR#250](#250 (review))
Addresses comments on [SlicerOpenLIFU PR#250 review](#250 (review))
Adds suggestions made in [a review of SlicerOpenLIFU PR#250](#250 (review))
7aeeee5 to
a66abcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is close to being merged, I just rebased again to main and still have a comment below that needs to be addressed.
Edit: This comment no longer needs to be addressed.
|
I'll rebase and merge this afternoon. |
Refactored pressure unit from Pa to MPa; added to_table method for tabular output; introduced ParameterConstraint class for status evaluation; updated test data accordingly.
- Introduced ParameterConstraint class for validating and evaluating analysis parameters. - Integrated constraint handling into Protocol.calc_solution and Solution.analyze. - Updated SolutionAnalysis.to_table to include constraint status. - Modified example_protocol.json to define parameter constraints. - Added param_constraint.py and corresponding test notebook.
Added from __future__ import annotations across modules to resolve CI issues; updated type annotations for ParameterConstraint references to eliminate forward declarations.
- Added check for param_constraints being a dict - Adjusted type assertions for other fields in test_solution_analyze_data_types
Replace default None with field(default_factory=dict) for param_constraints in Solution.analyze; formatting-only change in test_solution.py.
Replaces field(default_factory=dict) with plain {} as default for
param_constraints in Solution.analyze.
Standardized coordinate dimension names (x, y, z → lat, ele, ax); adjusted test inputs and protocol serialization; changed MI calculation to use max value; updated parameter formatting for MI.
- Add optional focus_index param to SolutionAnalysis.to_table to select value per focus - Updated logic to handle per-focus values vs aggregated - Modified formatting and constraint evaluation accordingly - Adjusted test notebook to use focus_index with constraints
Update db_dvc.dvc to contain the updated class fields by running the command at the state of the current revision: ``` python scripts/standardize_database.py db_dvc ```
Addresses comments on [SlicerOpenLIFU PR#250 review](#250 (review))
Adds suggestions made in [a review of SlicerOpenLIFU PR#250](#250 (review))
a66abcc to
4b52c6f
Compare
Addresses comments on [SlicerOpenLIFU PR#250 review](#250 (review))
Closes #230