Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aliby-mirror
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
aliby-mirror
Commits
20677193
Commit
20677193
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
clean ppparameters
Former-commit-id: 589ebd0fa6de82f9feed5ef84e3fc973fa888bc1
parent
5bb5c9b4
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
core/processor.py
+6
-9
6 additions, 9 deletions
core/processor.py
examples/basic_processes.py
+5
-5
5 additions, 5 deletions
examples/basic_processes.py
with
11 additions
and
14 deletions
core/processor.py
+
6
−
9
View file @
20677193
...
...
@@ -15,19 +15,17 @@ class PostProcessorParameters(ParametersABC):
Anthology of parameters used for postprocessing
:merger:
:picker: parameters for picker
:processes: List of processes that can be found in ./processes
:datasets: Dictionary
:processes: Dict processes:[objectives],
'
processes
'
are defined in ./processes/
while objectives are relative or absolute paths to datasets. If relative paths the
post-processed addresses are used.
#TODO Use cells to fetch updated cell indices
"""
def
__init__
(
self
,
merger
=
None
,
picker
=
None
,
processes
=
[],
datasets
=
[],
outpaths
=
[]
):
def
__init__
(
self
,
merger
=
None
,
picker
=
None
,
processes
=
[]):
self
.
merger
:
MergerParameters
=
merger
self
.
picker
:
PickerParameters
=
picker
self
.
processes
:
List
=
processes
self
.
outpaths
=
outpaths
self
.
datasets
:
Dict
=
datasets
...
...
@@ -43,7 +41,7 @@ class PostProcessorParameters(ParametersABC):
datasets
=
{
"
merger
"
:
"
/extraction/general/None/area
"
,
"
picker
"
:
"
/extraction/general/None/area
"
,
"
processes
"
:
[]
,
"
processes
"
:
{
"
dSignal
"
:
[
"
/general/None/area
"
]}
,
},
)
...
...
@@ -57,8 +55,7 @@ class PostProcessor:
self
.
_signal
=
Signal
(
filename
)
self
.
_writer
=
Writer
(
filename
)
self
.
datasets
=
parameters
[
"
datasets
"
]
self
.
outpaths
=
parameters
[
"
outpaths
"
]
# self.outpaths = parameters["outpaths"]
self
.
merger
=
Merger
(
parameters
[
"
merger
"
])
self
.
picker
=
Picker
(
parameters
=
parameters
[
"
picker
"
],
cells
=
Cells
.
from_source
(
filename
)
...
...
This diff is collapsed.
Click to expand it.
examples/basic_processes.py
+
5
−
5
View file @
20677193
...
...
@@ -5,11 +5,11 @@ pp = PostProcessor(
"
/shared_libs/pipeline-core/scripts/pH_calibration_dual_phl__ura8__by4741__01/ph_5_29_025store.h5
"
,
params
,
)
#
tmp = pp.run()
tmp
=
pp
.
run
()
import
h5py
f
=
h5py
.
File
(
"
/shared_libs/pipeline-core/scripts/pH_calibration_dual_phl__ura8__by4741__01/ph_5_29_025store.h5
"
,
"
a
"
,
)
#
f = h5py.File(
#
"/shared_libs/pipeline-core/scripts/pH_calibration_dual_phl__ura8__by4741__01/ph_5_29_025store.h5",
#
"a",
#
)
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