Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wela
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
wela
Commits
8b7e2a26
Commit
8b7e2a26
authored
1 year ago
by
pswain
Browse files
Options
Downloads
Patches
Plain Diff
cosmetic changes
parent
9ae96baf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
add_bud_fluorescence.py
+0
-3
0 additions, 3 deletions
add_bud_fluorescence.py
with
0 additions
and
3 deletions
add_bud_fluorescence.py
+
0
−
3
View file @
8b7e2a26
...
...
@@ -19,7 +19,6 @@ def add_bud_fluorescence(h5dirpath, signals=["/extraction/GFP/max/median"]):
The signals to find for the buds as paths in the h5 file.
E.g. [
"
/extraction/GFP/max/median
"
,
"
/extraction/mCherry/max/median
"
]
"""
# add new bud_metrics to params
params
=
PostProcessorParameters
.
default
()
params_dict
=
params
.
to_dict
()
...
...
@@ -28,12 +27,10 @@ def add_bud_fluorescence(h5dirpath, signals=["/extraction/GFP/max/median"]):
print
(
"
\t
"
,
signal
)
params_dict
[
"
targets
"
][
"
processes
"
].
append
([
"
bud_metric
"
,
[
signal
]])
new_params
=
params
.
from_dict
(
params_dict
)
# find h5 files
if
isinstance
(
h5dirpath
,
str
):
h5dirpath
=
Path
(
h5dirpath
)
h5files
=
[
f
.
name
for
f
in
h5dirpath
.
glob
(
"
*.h5
"
)
if
f
.
is_file
()]
# re-run postprocessing for each file
for
h5file
in
h5files
:
filepath
=
Path
(
h5dirpath
/
h5file
)
...
...
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