XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
20 stars 32 forks source link

compare_metadata does not work in case current metadata is not stored #1283

Closed WenzDaniel closed 10 months ago

WenzDaniel commented 10 months ago

We should add a fall back method which only compares the lineages in case the current data-type not stored. Currently, we are loading the metadata via:

# new metadata for the given runid + target; fetch from context
 new_metadata = self.get_metadata(run_id, target)

We should as fall back in case data is not stored:

new_lineage = st.key_for(run_id, data-type).linegae

One needs to only cast all tuples into lists or vise-versa or deactivate the type checking as otherwise one cannot compare to metadata files loaded from disk.

WenzDaniel commented 10 months ago

Better move to strax....