Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only inspect one file for detector_info #219

Merged
merged 3 commits into from Oct 22, 2019
Merged

Only inspect one file for detector_info #219

merged 3 commits into from Oct 22, 2019

Conversation

takluyver
Copy link
Member

This approximates the total number of frames in the run - but that wasn't the most useful statistic anyway, because it can vary among detector modules, and we were picking an arbitrary module.

In combination with #206, this should mean we only open one HDF5 file for lsxfel (once the run map is cached), rather than all files for that detector module. Long runs can have 20 sequence files, so this should be much faster.

@takluyver takluyver added this to the 0.7 milestone Oct 21, 2019
@takluyver
Copy link
Member Author

At some point we'll need to be smarter if reduced data has varying numbers of frames saved for different trains, but I'm not trying to tackle that here.

karabo_data/reader.py Outdated Show resolved Hide resolved
@tmichela
Copy link
Member

Minor comment, LGTM

@takluyver takluyver merged commit 26cc5fb into master Oct 22, 2019
@takluyver takluyver deleted the det-info-1file branch October 22, 2019 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants