Skip to content

Commit cd7b18e

Browse files
committed
Merge branch 'bugfix-single-obs-key' of https://github.com/zincware/ZnH5MD into bugfix-single-obs-key
2 parents 6f79466 + 86a8d16 commit cd7b18e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/test_single_obs_key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_single_entry_info(tmp_path):
1717
assert len(list(io)) == 6
1818
assert len(io[:]) == 6
1919

20+
2021
def test_single_entry_arrays(tmp_path):
2122
# Test a special case where only the first config has the key
2223
# which caused an error in the past

znh5md/interface/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def getitem(
181181
if f"/observables/{self.particles_group}" in f:
182182
observables = f[f"/observables/{self.particles_group}"]
183183
process_observables(self, frames, observables, index)
184-
184+
185185
print(len(frames))
186186
print(particles)
187187
print(is_single_item)

znh5md/serialization/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import contextlib
12
import dataclasses
23
import functools
34
import json
45
import typing as t
5-
import contextlib
66

77
import ase
88
import h5py

0 commit comments

Comments
 (0)