Skip to content

Commit

Permalink
cleanup vector model example
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Dec 19, 2024
1 parent 146cfca commit de1be03
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions examples/models/inplane_oriented_thick_pol3d_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)

# Calculate transfer function
sfZYX_transfer_function, intensity_to_stokes_matrix = (
sfZYX_transfer_function, intensity_to_stokes_matrix, singular_system = (
inplane_oriented_thick_pol3d_vector.calculate_transfer_function(
swing,
scheme,
Expand Down Expand Up @@ -53,30 +53,13 @@
viewer.layers.select_all()
viewer.layers.remove_selected()

singular_system = (
inplane_oriented_thick_pol3d_vector.calculate_singular_system(
sfZYX_transfer_function
)
)

# Simulate
szyx_data = inplane_oriented_thick_pol3d_vector.apply_transfer_function(
fzyx_object,
sfZYX_transfer_function,
intensity_to_stokes_matrix,
)

# from waveorder.visuals.napari_visuals import add_transfer_function_to_viewer

# add_transfer_function_to_viewer(
# viewer,
# singular_system[1],
# zyx_scale=(z_pixel_size, yx_pixel_size, yx_pixel_size),
# layer_name="Singular Values",
# )
# import pdb; pdb.set_trace()


# Display
arrays = [
(szyx_data, "Data"),
Expand Down Expand Up @@ -104,7 +87,5 @@

viewer.grid.enabled = True
viewer.grid.shape = (2, 5)
import pdb

pdb.set_trace()
input("Showing object, data, and recon. Press <enter> to quit...")

0 comments on commit de1be03

Please sign in to comment.