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
f2efb3fb
Commit
f2efb3fb
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
Former-commit-id: df390a601cab1815628cde45c21929a2b120ff65
parent
bdae0e8a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/processor.py
+19
-15
19 additions, 15 deletions
core/processor.py
with
19 additions
and
15 deletions
core/processor.py
+
19
−
15
View file @
f2efb3fb
...
...
@@ -74,15 +74,16 @@ class PostProcessor:
# self.outpaths = parameters["outpaths"]
self
.
merger
=
merger
(
parameters
[
"
parameters
"
][
"
prepost
"
][
"
merger
"
])
self
.
picker
=
picker
(
parameters
=
parameters
[
"
parameters
"
][
"
prepost
"
][
"
picker
"
],
cells
=
Cells
.
from_source
(
filename
),
)
self
.
classfun
=
{
process
:
self
.
get_process
(
process
)
for
process
in
parameters
[
"
targets
"
][
"
processes
"
]
.
keys
()
for
process
in
parameters
[
"
targets
"
][
"
processes
"
]
}
self
.
parameters
=
{
self
.
parameters
_classfun
=
{
process
:
self
.
get_parameters
(
process
)
for
process
in
parameters
[
"
targets
"
][
"
processes
"
]
}
...
...
@@ -115,24 +116,27 @@ class PostProcessor:
changes_history
=
prev_idchanges
+
[
merge_events
]
# + [picks]
self
.
_writer
.
write
(
"
/id_changes
"
,
data
=
changes_history
)
self
.
_writer
.
write
(
"
/postprocessing/merge_events/
"
,
data
=
merge_events
,
meta
=
{
"
source
"
:
"
/cell_info/
"
},
)
changes_history
+=
picks
picks
=
self
.
picker
.
run
(
self
.
_signal
[
self
.
targets
[
"
prepost
"
][
"
picker
"
][
0
]])
#
self._writer.write(
#
"/postprocessing/merge_events/",
#
data=merge_events,
#
meta={"source": "/cell_info/"},
#
)
#
changes_history += picks
#
picks = self.picker.run(self._signal[self.targets["prepost"]["picker"][0]])
# self._writer.write()
def
run
(
self
):
self
.
run_prepost
()
for
process
,
datasets
in
self
.
processes
[
"
processes
"
].
items
():
parameters
=
(
self
.
parameters
[
process
].
from_dict
(
self
.
parameters
[
process
])
if
process
in
self
.
parameters
[
"
processes
"
][
"
parameters
"
]
else
self
.
parameters
[
process
].
default
()
)
for
process
,
datasets
in
self
.
targets
[
"
processes
"
].
items
():
if
process
in
self
.
parameters
[
"
parameters
"
].
get
(
"
processes
"
,
{}
):
# If we assigned parameters
parameters
=
self
.
parameters_classfun
[
process
](
self
.
parameters
[
process
])
else
:
parameters
=
self
.
parameters_classfun
[
process
].
default
()
loaded_process
=
self
.
classfun
[
process
](
parameters
)
for
dataset
in
datasets
:
if
isinstance
(
dataset
,
list
):
# multisignal process
...
...
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