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 Nov 20, 2024
1 parent e62066b commit c4f1842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tests/integration/test_defining_custom_fields.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import json
import pathlib

import h5py
import numpy as np
import yaml
import numpy.testing as npt
import numpy.testing as npt

import zntrack
from zntrack.config import NOT_AVAILABLE, ZnTrackOptionEnum
import h5py

CWD = pathlib.Path(__file__).parent.resolve()

Expand All @@ -27,6 +25,7 @@ def _h5data_save_func(self: zntrack.Node, name: str, suffix: str):
with h5py.File(file, "w") as f:
f.create_dataset("data", data=getattr(self, name))


def h5data(*, cache: bool = True, independent: bool = False, **kwargs):
return zntrack.field(
cache=cache,
Expand Down
2 changes: 1 addition & 1 deletion zntrack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from zntrack.fields import (
deps,
deps_path,
field,
metrics,
metrics_path,
outs,
Expand All @@ -14,7 +15,6 @@
params_path,
plots,
plots_path,
field,
)
from zntrack.from_rev import from_rev
from zntrack.node import Node
Expand Down

0 comments on commit c4f1842

Please sign in to comment.