Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 6, 2024
1 parent 6085bfd commit 86a8d16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_single_obs_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def test_single_entry_info(tmp_path):
assert len(list(io)) == 6
assert len(io[:]) == 6


def test_single_entry_arrays(tmp_path):
# Test a special case where only the first config has the key
# which caused an error in the past
Expand Down
2 changes: 1 addition & 1 deletion znh5md/interface/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def getitem(
if f"/observables/{self.particles_group}" in f:
observables = f[f"/observables/{self.particles_group}"]
process_observables(self, frames, observables, index)

print(len(frames))
print(particles)
print(is_single_item)
Expand Down
2 changes: 1 addition & 1 deletion znh5md/serialization/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import contextlib
import dataclasses
import functools
import json
import typing as t
import contextlib

import ase
import h5py
Expand Down

0 comments on commit 86a8d16

Please sign in to comment.