Skip to content

Commit

Permalink
Removed obsolete show_plots checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoitink committed Oct 13, 2023
1 parent 5be1a90 commit 24d93a7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/napari_trackpy/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def xyz_particle_tracking_settings_widget(
min_separation_xy_µm: float = 0.3,
min_separation_z_µm: float = 0.3,
min_mass=int(1e5),
show_plots: bool = False,
):
if img_layer is None:
notifications.show_error("No image selected")
Expand Down Expand Up @@ -64,7 +63,6 @@ def xyz_particle_tracking_settings_widget(
min_separation_xy_μm, # noqa F821
min_separation_z_μm, # noqa F821
min_mass,
show_plots,
)
results.returned.connect(
lambda x: add_points_to_viewer(viewer, img_layer, x)
Expand Down Expand Up @@ -106,7 +104,6 @@ def do_particle_tracking(
min_separation_xy_µm: float,
min_separation_z_µm: float,
min_mass,
show_plots: bool,
):
img = img_layer.metadata["aicsimage"]

Expand Down Expand Up @@ -170,17 +167,6 @@ def do_particle_tracking(
)
]

if show_plots:
import matplotlib.pyplot as plt

_, ax = plt.subplots(1, 1)
ax.hist(coords["mass"], bins="auto", fc="blue", ec="k")
ax.set_title("Histogram of particle mass")
ax.set_xlabel("Mass")
ax.set_ylabel("Occurence")
plt.tight_layout()
plt.show(block=False)

notifications.show_info(
f"{np.shape(coords)[0]} features found, took {time()-t:.2f} s"
)
Expand Down

0 comments on commit 24d93a7

Please sign in to comment.