Skip to content

Commit

Permalink
better visualizations for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Oct 1, 2024
1 parent 93d5940 commit 6ad3d02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/models/inplane_oriented_thick_pol3d_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
index_of_refraction_media = 1.3
numerical_aperture_illumination = 0.9
numerical_aperture_detection = 1.2
fourier_oversample_factor = 2
fourier_oversample_factor = 1

# Create a phantom
fzyx_object = inplane_oriented_thick_pol3d_vector.generate_test_phantom(
Expand Down
14 changes: 13 additions & 1 deletion waveorder/visuals/napari_visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,16 @@ def add_transfer_function_to_viewer(
zyx_shape[1] // 2,
zyx_shape[2] // 2,
)
viewer.dims.order = (2, 0, 1)

# Show XZ view by default, and only allow rolling between XY and XZ
viewer.dims.order = list(range(transfer_function.ndim - 3)) + [
transfer_function.ndim - 2,
transfer_function.ndim - 3,
transfer_function.ndim - 1,
]
viewer.dims.rollable = (False,) * (transfer_function.ndim - 3) + (
True,
True,
False,
)

0 comments on commit 6ad3d02

Please sign in to comment.