Skip to content

Commit

Permalink
Ensure correct dim order for every data loader
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Apr 13, 2024
1 parent e367873 commit 14be4b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtscalibration/dts_accessor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""This module provides an xarray accessor for DTS calibration."""
"""The xarray accessor for DTS calibration."""

import dask.array as da
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/dtscalibration/io/apsensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def read_apsensing_files(
)

ds = xr.Dataset(data_vars=data_vars, coords=coords, attrs=attrs, **kwargs)
ds = ds.transpose("x", "time", ...)
return ds


Expand Down
1 change: 1 addition & 0 deletions src/dtscalibration/io/sensornet.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def read_sensornet_files(
)

ds = xr.Dataset(data_vars=data_vars, coords=coords, attrs=attrs, **kwargs)
ds = ds.transpose("x", "time", ...)
return ds


Expand Down
1 change: 1 addition & 0 deletions src/dtscalibration/io/sensortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def read_sensortran_files(
)

ds = xr.Dataset(data_vars=data_vars, coords=coords, attrs=attrs, **kwargs)
ds = ds.transpose("x", "time", ...)
return ds


Expand Down

0 comments on commit 14be4b9

Please sign in to comment.