From 1fb366b5475bb5c5048ce87c0dcac5d9909e0cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk> Date: Wed, 29 Jun 2022 18:34:12 +0100 Subject: [PATCH] style(imageViewer): cleanup comments --- aliby/utils/imageViewer.py | 64 -------------------------------------- 1 file changed, 64 deletions(-) diff --git a/aliby/utils/imageViewer.py b/aliby/utils/imageViewer.py index 5d7a5d44..39b0790e 100644 --- a/aliby/utils/imageViewer.py +++ b/aliby/utils/imageViewer.py @@ -190,8 +190,6 @@ class remoteImageViewer: if channels and not isinstance(channels, t.Collection): channels = [channels] - # if z and isinstance(z, t.Collection): - # z = list(z) if z is None: z = 0 @@ -257,13 +255,6 @@ class remoteImageViewer: ) return out, imgs - # def plot_labelled_zstacks( - # self, trap_id, channels, trange, z=None, **kwargs - # ): - # # if z is None: - # # z = - # out, images = self.get_images(trap_id, trange, channels, z=z, **kwargs) - def plot_labelled_trap( self, trap_id: int, @@ -404,61 +395,6 @@ class remoteImageViewer: else: plt.show() - # def plot_labelled_trap( - # self, - # trap_id: int, - # trange: t.Union[range, t.Collection[int]], - # ncols: int, - # remove_axis: bool = False, - # savefile: str = None, - # skip_outlines: bool = False, - # **kwargs, - # ): - # """ - # Wrapper to plot a single trap over time - - # Parameters - # --------- - # :trap_id: int trap identification - # :trange: Collection or Range list of time points to fetch - # """ - # nrows = len(trange) // ncols - # width = self.tiler.tile_size * ncols - # out, img = self.get_labelled_trap(trap_id, trange, **kwargs) - - # # dilation makes outlines easier to see - # out = dilation(out).astype(float) - # out[out == 0] = np.nan - - # # interpolation_kwargs = {""} - - # custom_imshow( - # concat_pad(img), - # cmap="Greys_r", - # ) - # if not skip_outlines: - # custom_imshow( - # concat_pad(out), - # cmap="Set1", - # ) - - # bbox_inches = None - # if remove_axis: - # plt.axis("off") - # bbox_inches = "tight" - - # else: - # plt.yticks( - # ticks=[self.tiler.tile_size * (i + 0.5) for i in range(nrows)], - # labels=[trange[0] + ncols * i for i in range(nrows)], - # ) - - # if not savefile: - # plt.show() - # else: - # if np.any(out): - # plt.savefig(savefile, bbox_inches=bbox_inches) - def concat_pad(a: np.array, width, nrows): """ -- GitLab