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 Oct 4, 2024
1 parent 1e0e7b3 commit 562955d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions examples/tiled_grids_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"metadata": {},
"outputs": [],
"source": [
"import yt\n",
"from yt_experiments.tiled_grid import YTTiledArbitraryGrid\n",
"import os\n",
"import shutil\n",
"\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import yt\n",
"import zarr\n",
"import os\n",
"import shutil"
"\n",
"from yt_experiments.tiled_grid import YTTiledArbitraryGrid"
]
},
{
Expand Down
9 changes: 5 additions & 4 deletions yt_experiments/tiled_grid/tiled_grid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import Any, Callable, Optional
from collections.abc import Callable
from typing import Any

import numpy as np
from yt._typing import FieldKey
Expand All @@ -19,7 +20,7 @@ def __init__(
*,
ds: Dataset = None,
field_parameters=None,
data_source: Optional[Any] = None,
data_source: Any | None = None,
):
"""
Expand Down Expand Up @@ -247,7 +248,7 @@ def __init__(
level_chunks,
ds: Dataset = None,
field_parameters=None,
data_source: Optional[Any] = None,
data_source: Any | None = None,
):
"""
Expand Down Expand Up @@ -351,7 +352,7 @@ def __init__(
factor: int | tuple[int, int, int] = 2,
ds: Dataset = None,
field_parameters=None,
data_source: Optional[Any] = None,
data_source: Any | None = None,
):

dims_ = np.array(dims, dtype=int)
Expand Down

0 comments on commit 562955d

Please sign in to comment.