Skip to content

[do not merge] Temporary branch to test S#124#139

Closed
ebrahimebrahim wants to merge 21 commits into
mainfrom
temporary_branch_to_test_S#124
Closed

[do not merge] Temporary branch to test S#124#139
ebrahimebrahim wants to merge 21 commits into
mainfrom
temporary_branch_to_test_S#124

Conversation

@ebrahimebrahim
Copy link
Copy Markdown
Collaborator

This is a temporary branch created just to test OpenwaterHealth/SlicerOpenLIFU#124 until the needed functionality is ported from the matlab codebase (#104 and #126)

This PR is meant to be used for reference and then closed without merging.

The important thing to reference here in this branch is Protocol.calc_solution. This shows the API that we will assume from SlicerOpenLIFU

ebrahimebrahim and others added 16 commits October 6, 2024 14:42
This includes
* changing Solution.focus to Solution.foci and making that be a *list*
  of Points rather than a Point.
* changing the xarray simulation data to have an additional coord
  "focal_point_index"
* adding an axis to the delay and apodization arrays in Solution to
  index focal points.
This adds minimal solution analysis code so it outputs at least the `mainlobe_pnp_MPa` attribute. The rest has been commented out for future work, additionnal modules/functions are also added to prepare future work.
Fix circular import issue

Co-authored-by: Ebrahim Ebrahim <ebrahim.ebrahim@kitware.com>
distance units now available in SolutionOptions
Removed `calc_dist_from_focus`, the algorithm is now in `mask_focus`

pre-commit hook
@ebrahimebrahim
Copy link
Copy Markdown
Collaborator Author

@ltetrel When you do #126 please reference Protocol.calc_solution in this temporary branch to see what is the API we need. Your implementation maybe be different because it would be following the matlab code more closely, but the API can hopefully be almost the same

@ebrahimebrahim ebrahimebrahim force-pushed the temporary_branch_to_test_S#124 branch from 1b1e3c4 to 0374c53 Compare October 23, 2024 05:30
This is just an example of how Protocol.calc_solution could work.
The real thing should be ported over from the matlab code.

The purpose of this example is to show the API we need from the
side of SlicerOpenLIFU.
@ebrahimebrahim ebrahimebrahim force-pushed the temporary_branch_to_test_S#124 branch from 0374c53 to 0ef7176 Compare October 23, 2024 05:32
ebrahimebrahim and others added 4 commits October 26, 2024 16:13
* automatically create empty `runs.json`, `solutions.json`, and `volumes.json`
  when new objects are written to the database that should have those
* update our example data in dvc to have these empty solutions.json,
  etc. files
@ebrahimebrahim
Copy link
Copy Markdown
Collaborator Author

This is no longer needed since #146 is merged.

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.

4 participants