Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nd2shrink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Andrey ARISTOV
nd2shrink
Commits
4c26e885
Commit
4c26e885
authored
3 years ago
by
Andrey Aristov
Browse files
Options
Downloads
Patches
Plain Diff
replace read function
parent
0b08d8ff
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
src/segment/__main__.py
+2
-2
2 additions, 2 deletions
src/segment/__main__.py
with
2 additions
and
2 deletions
src/segment/__main__.py
+
2
−
2
View file @
4c26e885
...
@@ -3,7 +3,7 @@ import os
...
@@ -3,7 +3,7 @@ import os
import
numpy
as
np
import
numpy
as
np
import
pandas
as
pd
import
pandas
as
pd
from
segment
import
seg
from
segment
import
seg
from
nd2_combine
import
tools
import
nd2
from
functools
import
partial
from
functools
import
partial
import
logging
import
logging
import
click
import
click
...
@@ -62,7 +62,7 @@ def check_paths(paths:list):
...
@@ -62,7 +62,7 @@ def check_paths(paths:list):
def
process
(
path
:
str
=
''
,
out_dir_suffix
:
str
=
''
,
len_range_px
:
tuple
=
(
50
,
500
),
logger
=
logging
,
cpu
:
int
=
1
):
def
process
(
path
:
str
=
''
,
out_dir_suffix
:
str
=
''
,
len_range_px
:
tuple
=
(
50
,
500
),
logger
=
logging
,
cpu
:
int
=
1
):
logger
.
info
(
f
'
Processing
{
path
}
'
)
logger
.
info
(
f
'
Processing
{
path
}
'
)
logger
.
debug
(
f
'
len_range_px =
{
len_range_px
}
'
)
logger
.
debug
(
f
'
len_range_px =
{
len_range_px
}
'
)
reader
=
tools
.
read_nd2
(
path
)
reader
=
nd2
.
ND2File
(
path
).
asarray
(
)
dirr
=
create_results_dir
(
path
,
suffix
=
out_dir_suffix
)
dirr
=
create_results_dir
(
path
,
suffix
=
out_dir_suffix
)
pfun
=
partial
(
seg
.
crop_and_segment
,
dirr
=
dirr
,
lim_major_axis_length
=
len_range_px
,
print_dot
=
True
)
pfun
=
partial
(
seg
.
crop_and_segment
,
dirr
=
dirr
,
lim_major_axis_length
=
len_range_px
,
print_dot
=
True
)
...
...
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