Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Oct 4, 2024
1 parent 44777ca commit 223c199
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt_experiments/tiled_grid/tiled_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@

def _validate_edge(edge: npt.ArrayLike, ds: Dataset):
if not isinstance(edge, unyt.unyt_array):
return ds.arr(edge, 'code_length')
return ds.arr(edge, "code_length")
return edge


def _validate_nd_int(nd: int, x: int | npt.ArrayLike) -> npt.NDArray:
if isinstance(x, int):
x = (x,) * nd
Expand All @@ -22,6 +23,7 @@ def _validate_nd_int(nd: int, x: int | npt.ArrayLike) -> npt.NDArray:
raise ValueError("Variable must have a length of 3")
return x


class YTTiledArbitraryGrid:

_ndim = 3
Expand Down

0 comments on commit 223c199

Please sign in to comment.