openPMD / openPMD/openPMD-api

Explicit user-exposed Series close/(re-)open functionality

Open
#149 1 comment 1 reaction 0 assignees View on GitHub
api: breaking frontend: C++17 frontend: Python3 good first issue internal
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

Currently, the lifetime of file handles used in the backends is tied to the lifetime of a ```Series``` they are contained in. It would be very convenient to offer explicit control over this lifetime by having a public interface to close all handles in a Series (e.g. through ```Series::close()``` and likewise to re-open a closed Series (e.g. through ```Series::reopen()```).
Sidenote: When reopening a ~file~ series, it would be wise to re-read ~the entire file~ the meta-data of all involved files instead of resuing old values stored in this logical API. The reasoning is that the file could be modified externally, resulting in an incosistent state between logical and physical representation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.