Skip to content
Snippets Groups Projects
Commit 6d0fd2bd authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

No longer check for XTDF structure

parent 0509da5e
No related branches found
No related tags found
1 merge request!8Initial performance optimizations for frame selection pilots
......@@ -166,9 +166,6 @@ class ReduceWriter(SourceDataWriter):
def _filter_ops(self, op):
return [args[1:] for args in self._ops if args[0] == op]
def _is_xtdf_source(self, source):
return self._data[source].keys() > {'header.pulseCount', 'image.data'}
def _get_entry_masks(self, source, index_group, train_sel, entry_sel):
train_ids = select_train_ids(
self._custom_trains.get(source, list(self._data.train_ids)),
......@@ -444,11 +441,6 @@ class ReduceWriter(SourceDataWriter):
f'Ignoring non-XTDF source {source} based on name')
return
if not self._is_xtdf_source(source):
self.log.warning(
f'Ignoring non-XTDF source {source} based on structure')
return
self._custom_xtdf_masks.setdefault(source, {}).update(
self._get_entry_masks(source, 'image', train_sel, entry_sel))
self.log.debug(f'Applying XTDF selection to {source}')
......
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