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
f0b24f86
Commit
f0b24f86
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
parent
11e340cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extraction/core/functions/cell.py
+1
-1
1 addition, 1 deletion
extraction/core/functions/cell.py
extraction/core/functions/defaults.py
+2
-2
2 additions, 2 deletions
extraction/core/functions/defaults.py
with
3 additions
and
3 deletions
extraction/core/functions/cell.py
+
1
−
1
View file @
f0b24f86
...
...
@@ -57,7 +57,7 @@ def max5px_med(cell_mask, trap_image):
return
max5px
/
sorted_vals
[
len
(
sorted_vals
)
//
2
]
def
max5pc_med
(
cell_mask
,
trap_image
):
def
max
2p
5pc_med
(
cell_mask
,
trap_image
):
npixels
=
cell_mask
.
sum
()
top_pixels
=
int
(
np
.
ceil
(
npixels
*
0.025
))
...
...
This diff is collapsed.
Click to expand it.
extraction/core/functions/defaults.py
+
2
−
2
View file @
f0b24f86
...
...
@@ -32,8 +32,8 @@ def exparams_from_meta(meta: Union[dict, PosixPath, str], extras=["ph"]):
"
imBackground
"
,
"
max2p5pc
"
,
"
max2p5pc_med
"
,
"
max
2p
5px
"
,
"
max
2p
5px_med
"
,
"
max5px
"
,
"
max5px_med
"
,
}
default_rm
=
{
r
:
default_metrics
for
r
in
default_reductions
}
...
...
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