Skip to content

Commit 590f77f

Browse files
committed
Remove sorting of time_block dimension
1 parent ffba4de commit 590f77f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

imap_processing/ancillary/ancillary_dataset_combiner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,13 @@ def convert_file_to_dataset(self, filepath: str | Path) -> xr.Dataset: # noqa:
431431
lines = [line.strip() for line in f if not line.startswith("#")]
432432
identifiers = [line.split(" ", 1)[0] for line in lines]
433433
values = [float(line.split(" ", 1)[1]) for line in lines]
434-
ds = xr.Dataset(
434+
return xr.Dataset(
435435
{
436436
"start_time_utc": (["time_block"], identifiers),
437437
"cps_per_r": (["time_block"], values),
438438
}
439439
)
440440

441-
return ds.sortby("time_block")
442-
443441
elif filename.endswith(".json"):
444442
# Handle pipeline settings JSON file using the generic read_json method
445443
return self.convert_json_to_dataset(filepath)

0 commit comments

Comments
 (0)