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
ecef1146
Commit
ecef1146
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
add support for CellsLinear
parent
6079eed3
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
extraction/core/extractor.py
+2
-7
2 additions, 7 deletions
extraction/core/extractor.py
with
2 additions
and
7 deletions
extraction/core/extractor.py
+
2
−
7
View file @
ecef1146
...
@@ -27,7 +27,7 @@ from extraction.core.functions.utils import depth
...
@@ -27,7 +27,7 @@ from extraction.core.functions.utils import depth
from
agora.abc
import
ProcessABC
,
ParametersABC
from
agora.abc
import
ProcessABC
,
ParametersABC
from
agora.io.writer
import
Writer
,
load_attributes
from
agora.io.writer
import
Writer
,
load_attributes
from
agora.io.cells
import
Cells
from
agora.io.cells
import
Cells
Linear
from
aliby.tile.tiler
import
Tiler
from
aliby.tile.tiler
import
Tiler
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
@@ -127,10 +127,6 @@ class Extractor(ProcessABC):
...
@@ -127,10 +127,6 @@ class Extractor(ProcessABC):
def
from_img
(
cls
,
parameters
:
ExtractorParameters
,
store
:
str
,
img_meta
:
tuple
):
def
from_img
(
cls
,
parameters
:
ExtractorParameters
,
store
:
str
,
img_meta
:
tuple
):
return
cls
(
parameters
,
store
=
store
,
tiler
=
Tiler
(
*
img_meta
))
return
cls
(
parameters
,
store
=
store
,
tiler
=
Tiler
(
*
img_meta
))
# @classmethod
# def from_store(cls, parameters: ExtractorParameters, store: str, img_meta: tuple):
# return cls(parameters, store=store, tiler=Tiler(*img_meta))
@property
@property
def
channels
(
self
):
def
channels
(
self
):
if
not
hasattr
(
self
,
"
_channels
"
):
if
not
hasattr
(
self
,
"
_channels
"
):
...
@@ -324,7 +320,7 @@ class Extractor(ProcessABC):
...
@@ -324,7 +320,7 @@ class Extractor(ProcessABC):
ch_tree
=
{
ch
:
v
for
ch
,
v
in
tree
.
items
()
if
ch
!=
"
general
"
}
ch_tree
=
{
ch
:
v
for
ch
,
v
in
tree
.
items
()
if
ch
!=
"
general
"
}
tree_chs
=
(
*
ch_tree
,)
tree_chs
=
(
*
ch_tree
,)
cells
=
Cells
.
hdf
(
self
.
local
)
cells
=
Cells
Linear
(
self
.
local
)
# labels
# labels
if
labels
is
None
:
if
labels
is
None
:
...
@@ -421,7 +417,6 @@ class Extractor(ProcessABC):
...
@@ -421,7 +417,6 @@ class Extractor(ProcessABC):
"""
"""
Returns the image from a correct source, either raw or bgsub
Returns the image from a correct source, either raw or bgsub
:channel: str name of channel to get
:channel: str name of channel to get
:img: ndarray (trap_id, channel, tp, tile_size, tile_size, n_zstacks) of standard channels
:img: ndarray (trap_id, channel, tp, tile_size, tile_size, n_zstacks) of standard channels
:channels: List of channels
:channels: List of channels
...
...
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