next-exp / next-exp/IC

Buffy fails when the first file does not contain sensor data

Open
#883 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11
Forks
77
PR merge metrics
No merged PRs in 30d

Description

If a simulation does not record any sensor hits, it does not write the sensor positions either. If this happens, the mc info writer receives an empty dataframe without column information and the hdf5 table will contain incorrect data types causing a mismatch when the next file is processed.

See the xfailed variant of test_buffy_empty_file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the xfailed variant of test_buffy_empty_file and trace how Buffy processes a first file without sensor data. Inspect the mc info writer and its empty dataframe handling before the HDF5 table is created. Done means the test passes and subsequent files no longer encounter data-type mismatches.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.