Vindaar / TimepixAnalysis

Contains code related to calibration and analysis of Timepix based detector + CAST related code
MIT License
19 stars 6 forks source link

Move gas gain slicing information from attributes to dataset #48

Closed Vindaar closed 9 months ago

Vindaar commented 3 years ago

Instead of storing the information about all gas gain slices as attributes, which for long runs can accumulate to several hundred attributes (which is extremely slow to overwrite, because deleting attributes in large files with many attributes is ridiculously slow), we should store it as a dateset.

To not end up with many datasets, we can now use compound datatypes in nimhdf5. Just have a dataset with seq[GasGainIntervalData] as a compound dataset, where each row corresponds to one slice. Easy deletion and overwriting!

Vindaar commented 9 months ago

This has been implemented.