openPMD / openPMD/openPMD-api

Patches Load: Exception Handling

Open
#750 0 comments 0 reactions 0 assignees View on GitHub
affects latest release bug frontend: Python3 good first issue help wanted
Dominant language
C++
Stars
161
Forks
59
Avg merge
2d 22h
Merged PRs (30d)
7

Description

**Describe the bug**
Loading a non-existent particle patch should not segfault but throw (in Python).

Generally, try to derive and document a high-level workflow to deal with particle patches for scripts and frameworks such as ParaView.

**To Reproduce**
https://github.com/ComputationalRadiationPhysics/particle_reduction/issues/8

**Expected behavior**
Throw an exception and add simple probing functionality or high-level iterators.

**Software Environment**
- version of openPMD-api: 0.11.0-alpha
- installed openPMD-api via: all
- operating system: Ubuntu Linux 18.04 / all
- machine: local laptops / all
- name and version of Python implementation: CPython 3.7/3.8
- version of HDF5: N/A
- version of ADIOS1: N/A
- version of ADIOS2: N/A
- name and version of MPI: N/A

**Additional context**
Related to report in https://github.com/ComputationalRadiationPhysics/particle_reduction/issues/8

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.