key error in init_plot
@roscar I was getting this error when trying to use the interactive view in the weekend:
KeyError: ('SPB_EXP_SYS/TSYS/UTC_1_S3', 'image')
I fixed it by adding the if
statement below to line 148 in geometry.py in the _find_good_trains(self):
function:
for file in source_files:
if 'SPB_DET_AGIPD1M-1/DET' in source_name:
good_trains_source += \
set(file.train_ids[file.get_index(source_name, 'image')[1].nonzero()])
I don't think we had this data source in the DAQ previously. I think you could also use the same search/matching criteria that karabo_data does with the find_trains('*/DET/*')
(or similar) functionality instead.
Cheers, Henry