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 Jan 15, 2024
1 parent 9c3a194 commit c565d12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions znh5md/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""ZnH5MD: High Performance Interface for H5MD Trajectories."""

import contextlib
import importlib.metadata

Expand Down
19 changes: 9 additions & 10 deletions znh5md/format/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Format handler for h5md files."""

import contextlib
import dataclasses
import typing
Expand Down Expand Up @@ -33,16 +34,14 @@ class GRP:

@staticmethod
def encode_boundary(value) -> np.ndarray:
return np.array(
[
(
"periodic".encode(encoding="utf-8")
if x
else "none".encode(encoding="utf-8")
)
for x in value
]
)
return np.array([
(
"periodic".encode(encoding="utf-8")
if x
else "none".encode(encoding="utf-8")
)
for x in value
])

@staticmethod
def decode_boundary(value) -> np.ndarray:
Expand Down

0 comments on commit c565d12

Please sign in to comment.