Skip to content

Commit fb5f517

Browse files
committed
coord_order default
1 parent cfe757b commit fb5f517

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

yt_xarray/_utilities.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Tuple
1+
from typing import Optional, Tuple
22

33
import numpy as np
44
import xarray as xr
@@ -20,9 +20,12 @@ def construct_minimal_ds(
2020
z_units: str = "km",
2121
field_name: str = "test_field",
2222
n_fields: int = 1,
23-
coord_order: Tuple[str, str, str] = ["z", "y", "x"],
23+
coord_order: Optional[Tuple[str, str, str]] = None,
2424
) -> xr.Dataset:
2525

26+
if coord_order is None:
27+
coord_order = ("z", "y", "x")
28+
2629
# contruct and return a minimal xarray dataset to use in tests as needed
2730

2831
# current known z types = ["height", "depth", "radius", "altitude"]

0 commit comments

Comments
 (0)