Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swain Lab
aliby
alibylite
Commits
1fb366b5
Commit
1fb366b5
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
style(imageViewer): cleanup comments
parent
e840260c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aliby/utils/imageViewer.py
+0
-64
0 additions, 64 deletions
aliby/utils/imageViewer.py
with
0 additions
and
64 deletions
aliby/utils/imageViewer.py
+
0
−
64
View file @
1fb366b5
...
@@ -190,8 +190,6 @@ class remoteImageViewer:
...
@@ -190,8 +190,6 @@ class remoteImageViewer:
if
channels
and
not
isinstance
(
channels
,
t
.
Collection
):
if
channels
and
not
isinstance
(
channels
,
t
.
Collection
):
channels
=
[
channels
]
channels
=
[
channels
]
# if z and isinstance(z, t.Collection):
# z = list(z)
if
z
is
None
:
if
z
is
None
:
z
=
0
z
=
0
...
@@ -257,13 +255,6 @@ class remoteImageViewer:
...
@@ -257,13 +255,6 @@ class remoteImageViewer:
)
)
return
out
,
imgs
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
(
def
plot_labelled_trap
(
self
,
self
,
trap_id
:
int
,
trap_id
:
int
,
...
@@ -404,61 +395,6 @@ class remoteImageViewer:
...
@@ -404,61 +395,6 @@ class remoteImageViewer:
else
:
else
:
plt
.
show
()
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
):
def
concat_pad
(
a
:
np
.
array
,
width
,
nrows
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment