From 0d3bd826b0c18e56b9288d8a5c06798b4440d037 Mon Sep 17 00:00:00 2001 From: Julio Mateos Langerak Date: Thu, 29 Feb 2024 22:10:06 +0100 Subject: [PATCH] Renamed channel to channel_nr --- src/microscopemetrics/samples/argolight.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/microscopemetrics/samples/argolight.py b/src/microscopemetrics/samples/argolight.py index d3a4fca..ac5e179 100644 --- a/src/microscopemetrics/samples/argolight.py +++ b/src/microscopemetrics/samples/argolight.py @@ -91,7 +91,7 @@ def run(self) -> bool: for ch, ch_spot_props in enumerate(spots_properties): ch_df = DataFrame() ch_properties_kv = {} - ch_df["channel"] = [ch for _ in ch_spot_props] + ch_df["channel_nr"] = [ch for _ in ch_spot_props] ch_df["mask_labels"] = [p["label"] for p in ch_spot_props] ch_df["volume"] = [p["area"] for p in ch_spot_props] ch_df["roi_volume_units"] = "VOXEL" @@ -105,7 +105,7 @@ def run(self) -> bool: ch_df["roi_weighted_centroid_units"] = "PIXEL" # Key metrics for spots intensities - ch_properties_kv["channel"] = ch + ch_properties_kv["channel_nr"] = ch ch_properties_kv["nr_of_spots"] = len(ch_df) ch_properties_kv["intensity_max_spot"] = ch_df["integrated_intensity"].max().item() ch_properties_kv["intensity_max_spot_roi"] = ( @@ -240,7 +240,7 @@ def run(self) -> bool: do_angle_refinement=False, # TODO: implement angle refinement ) key_values = { - "channel": [c for c in range(image.shape[-1])], + "channel_nr": [c for c in range(image.shape[-1])], "rayleigh_resolution_pixels": resolution_values, "rayleigh_resolution_microns": [r * pixel_size for r in resolution_values if pixel_size is not None], "peak_position_A": [