-
Notifications
You must be signed in to change notification settings - Fork 12
Port over solution creation and scaling code (#126) #146
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f8901da
Port over solution creation and scaling code (#126)
ltetrel 57bb9d1
Protocol objects are now correctly json serializable.
ltetrel 0b327a1
Fixed numpy deprecation warning.
ltetrel f0be40e
Refactoring `Protocol` so `scale_solution` is now a member of the `So…
ltetrel dbef2cf
Merge branch 'main' into issue_126
ltetrel edb303c
Fixed simulation output variable handling if simulation not enabled.
ltetrel 150d310
\'setup_sim_scene\' is now the minimal implementation
ltetrel f787c42
Removing unused references related to segmentation and resampling fro…
ltetrel 580ad0c
transform argument not needed currently since we use a default water …
ltetrel 06942c2
Tests for check_targets
ltetrel df1ca69
` example_volume` is left commented for reference
ltetrel 5b25419
If we need to convert a transform, we want to use the method form `Tr…
ltetrel 911d535
Checking for pulse mismatch and updating accordingly the `Protocol` s…
ltetrel 5ef5737
Refactored `Solution.scale` and added associated tests.
ltetrel 2cdc725
rationalizing constants in `Solution.scale` using the new `FocalPatte…
ltetrel 1826c05
Clarified docstring for `Protocol.calc_solution`
ltetrel b706923
Improved docstring for `Protocol.check_target`
ltetrel 5dcf6ae
Fixed typing if None default
ltetrel fb3a0ac
now segmenting volume as well if volume is defined
ltetrel ea524b6
Refactored `setup_sim_scene` so it can also segment a volume.
ltetrel 0670968
fix sim setup call
ltetrel 0e2b74a
logging now through an attribute of `Protocol`
ltetrel 2b519b0
better testing coverage for target verification
ltetrel 8f55507
pytest raise instead of fail
ltetrel c26600d
test formating and better condition test
ltetrel 9ef9f02
Re-worked fix_pulse_mismatch test for better rationalization
ltetrel 3311c86
Some tests will be handled in the future in #152 since they require s…
ltetrel a1b39a6
Cleaning old nifti to xarray tests
ltetrel 912a733
Adding `Solution.compute_scaling_factors\' to further break down and …
ltetrel 15a6d05
Cleaning some TODOs
ltetrel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| from .protocol import Protocol | ||
| from .run import Run | ||
| from .solution import Solution | ||
| from .solution_analysis import SolutionAnalysis, SolutionAnalysisOptions | ||
| from .target_constraints import TargetConstraints | ||
|
|
||
| __all__ = [ | ||
| "Protocol", | ||
| "Solution", | ||
| "Run", | ||
| "SolutionAnalysis", | ||
| "SolutionAnalysisOptions", | ||
| "TargetConstraints" | ||
| ] |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.