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

Update files.py #338

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Update files.py #338

merged 1 commit into from
Oct 27, 2020

Conversation

JoranAngevaare
Copy link
Contributor

What is the problem / what does the code in this PR do
Solves a very hairy bug I induced here XENONnT/straxen#257

Can you briefly describe how it works?
So the eventbuilders are so freaking fast that we run into this issue. The metadata is still in a temp folder making the RunDBs frontend live hard.

Traceback

Traceback (most recent call last):
  File "/home/xedaq/software/straxen/bin/bootstrax", line 1142, in run_strax
    st_make()
  File "/home/xedaq/software/straxen/bin/bootstrax", line 1122, in st_make
    max_workers=process_mode['cores'])
  File "/home/xedaq/software/strax/strax/context.py", line 1085, in make
    save=save, max_workers=max_workers, **kwargs):
  File "/home/xedaq/software/strax/strax/context.py", line 901, in get_iter
    chunk_number=_chunk_number)
  File "/home/xedaq/software/strax/strax/context.py", line 745, in get_components
    check_cache(d)
  File "/home/xedaq/software/strax/strax/context.py", line 665, in check_cache
    check_cache(dep_d)
  File "/home/xedaq/software/strax/strax/context.py", line 603, in check_cache
    time_range=time_range)
  File "/home/xedaq/software/strax/strax/context.py", line 550, in _get_partial_loader_for
    sf.find(key, **self._find_options)
  File "/home/xedaq/software/strax/strax/storage/common.py", line 239, in find
    meta = self._get_backend(backend_name).get_metadata(backend_key)
  File "/home/xedaq/software/strax/strax/storage/files.py", line 215, in get_metadata
    raise strax.DataCorrupted(f"Data in {dirname} has no metadata")
strax.storage.common.DataCorrupted: Data in /data/xenonnt_processed/009655-lone_hits-nagx3zzuiv has no metadata

Copy link
Collaborator

@WenzDaniel WenzDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

@JoranAngevaare JoranAngevaare merged commit 4a11cfd into master Oct 27, 2020
@JoranAngevaare JoranAngevaare deleted the patch-metadata-in-temp-folder branch October 27, 2020 11:14
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.

2 participants