File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import numpy as np
55import xarray as xr
66import yt
7+ from numpy .typing import ArrayLike
78from unyt import unyt_quantity
89
910from yt_xarray .accessor import _xr_to_yt
@@ -37,7 +38,7 @@ def load_grid(
3738 use_callable : bool = True ,
3839 sel_dict : Optional [dict ] = None ,
3940 sel_dict_type : Optional [str ] = "isel" ,
40- chunksizes : Optional [int ] = None ,
41+ chunksizes : Optional [Union [ int , ArrayLike ] ] = None ,
4142 ** kwargs ,
4243 ):
4344 """
@@ -64,6 +65,11 @@ def load_grid(
6465 either "isel" (default) or "sel" to indicate index or value selection for
6566 sel_dict.
6667
68+ chunksizes: int or ArrayLike
69+ if set, will decompose the grid into multiple grids with grid dimensions
70+ of chunksizes. Can be a single integer (same chunksize in each dimensions)
71+ or an ArrayLike object of the same length as the number of dimensions.
72+
6773 kwargs :
6874 any additional keyword arguments to pass to yt.load_uniform_grid
6975
You can’t perform that action at this time.
0 commit comments