Skip to content

Conversation

@peterhollender
Copy link
Contributor

This adds the following attributes to SolutionAnalysis:

  • target_position_lat_mm
  • target_position_ele_mm
  • target_position_ax_mm
  • focal_centroid_lat_mm
  • focal_centroid_ele_mm
  • focal_centroid_ax_mm
  • duty_cycle_pulse_train_pct
  • duty_cycle_sequence_pct
  • sequence_duration_s

Some of the display format for other dimension based parameters are updated as well.

Significant figures on all items in solution analysis when generating a table are also refined.

fix pulse train interval type and make text consistent
Copy link
Collaborator

@ebrahimebrahim ebrahimebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and it ran and displayed the new things in the SlicerOpenLIFU solution analysis table.

(This is not a "semantic" review -- I am not checking the physical correctness of the analysis but just the soundness of the code.)

return cls(**parameter_dict)

def find_centroid(da: xa.DataArray, cutoff:float) -> np.ndarray:
def find_centroid(da: xa.DataArray, cutoff:float, units:None) -> np.ndarray:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(We should probably unit test things like find_centroid but we have all been foregoing a lot of that to get things together. Technical debt to be repaid)

@ebrahimebrahim ebrahimebrahim merged commit 3b76420 into main Jun 6, 2025
9 checks passed
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.

3 participants