Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Graceful HDF5 file handler always fails to close the file when CTRL+C #30

@siemdejong

Description

@siemdejong

Describe the bug
The file is never closed well when interrupting with ctrl+c.

^CERROR:root:Received SIGINT or SIGTERM! Finishing this block, then exiting.                                                                                                
  5%|██████▋                                                                                                                                | 5/101 [00:10<03:25,  2.14s/it]
ERROR:dpat.data.pmchhg_h5_dataset:Something went wrong with closing the file. Please inspect the file and delete if broken.

Expected behavior
Close the file well.

Desktop (please complete the following information):

  • OS: [e.g. Linux, Windows, macOS]
  • DPAT version 4.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions