Skip to content
Snippets Groups Projects
Commit db9ac0ce authored by Jakobsen, Mads Bregenholt's avatar Jakobsen, Mads Bregenholt
Browse files

blub

parent e7a76941
No related branches found
No related tags found
No related merge requests found
Pipeline #167529 passed
...@@ -179,6 +179,46 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher): ...@@ -179,6 +179,46 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
# initalize member variable for the q bin array # initalize member variable for the q bin array
# (Will have shape of 16x512x128) # (Will have shape of 16x512x128)
if self.schemupdate_test is False and True:
print("updating schema")
res = Schema()
(
NODE_ELEMENT(res)
.key("data")
.displayedName('Data')
.commit(),
IMAGEDATA_ELEMENT(res)
.key("data.test_hash")
.displayedName('test')
.description('test')
.commit(),
# NODE_ELEMENT(res)
# .key("image")
# .commit(),
)
schema_update = Schema()
(
OUTPUT_CHANNEL(schema_update)
.key("plots")
.dataSchema(res)
.commit(),
)
self.updateSchema(schema_update)
self.assembled_output = self._ss.getOutputChannel("plots")
self.schemupdate_test = True
print("updating schema done")
self.assembled_output = self.signalSlotable.getOutputChannel("plots") self.assembled_output = self.signalSlotable.getOutputChannel("plots")
if not self.get("enableKaraboOutput"): if not self.get("enableKaraboOutput"):
...@@ -375,38 +415,6 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher): ...@@ -375,38 +415,6 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
if numPixelPerGainStage is not None: if numPixelPerGainStage is not None:
plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.accumulating_lit_bunch', GainStagePlotter, train_id, numPixelPerGainStage) plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.accumulating_lit_bunch', GainStagePlotter, train_id, numPixelPerGainStage)
if self.schemupdate_test is False and True:
print("updating schema")
res = Schema()
(
NODE_ELEMENT(res)
.key("data")
.displayedName('Data')
.commit(),
IMAGEDATA_ELEMENT(res)
.key("data.test_hash")
.displayedName('test')
.description('test')
.commit(),
# NODE_ELEMENT(res)
# .key("image")
# .commit(),
)
schema_update = Schema()
(
OUTPUT_CHANNEL(schema_update)
.key("plots")
.dataSchema(res)
.commit(),
)
self.updateSchema(schema_update)
self.assembled_output = self._ss.getOutputChannel("plots")
self.schemupdate_test = True
print("updating schema done")
plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.test_hash', GainStagePlotter, train_id, numPixelPerGainStage) plot_hash = self.onlineImagePlotter.add_to_hash(plot_hash, 'data.test_hash', GainStagePlotter, train_id, numPixelPerGainStage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment