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

adding sample output with logging for debugging purposes

parent 24876af5
No related branches found
No related tags found
No related merge requests found
Pipeline #167298 passed
......@@ -111,11 +111,25 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
.defaultValue(True)
.commit(),
NODE_ELEMENT(expected)
.key("debug")
.displayname("Debug")
.commit(),
SLOT_ELEMENT(expected)
.key("triggerSampleOutput")
.displayedName("send test data over pipeline")
.description("send test data")
.commit(),
OUTPUT_CHANNEL(expected)
.key("plots")
.dataSchema(preview_schema())
.commit(),
)
def __init__(self, config):
......@@ -130,7 +144,7 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
# expose the get xpcs settings function
self.KARABO_SLOT(self.get_OnlineMIDSettings)
self.KARABO_SLOT(self.triggerSampleOutput)
self.registerSlot(self.triggerSampleOutput)
### XPCS specific variables
self.online_processing_memory = None
......@@ -296,6 +310,8 @@ class OnlineMIDProcessor(TrainMatcher.TrainMatcher):
my_generated_train_id = 21249888900
def triggerSampleOutput(self):
self.log.INFO("generating sample output")
print("generating sample output")
myGroupName = self.get('deviceId')[-2:]
......
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