Skip to content

Commit

Permalink
bug fix that addresses issue #1231
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Jan 8, 2025
1 parent f443c6f commit 3966f03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pcmdi_metrics/io/xcdat_openxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def fix_noncompliant_attr(ds: xr.Dataset) -> xr.Dataset:


def _xcdat_openxml(
xmlfile: str, data_var: str = None, decode_times: bool = True
xmlfile: str, data_var: str = None, decode_times: bool = True, chunks=None
) -> xr.Dataset:
"""Open input file (xml generated by cdscan)
Expand Down Expand Up @@ -142,11 +142,11 @@ def _xcdat_openxml(

if len(ncfile_list) > 1:
ds = xc.open_mfdataset(
ncfile_list, data_var=data_var, decode_times=decode_times
ncfile_list, data_var=data_var, decode_times=decode_times, chunks=None
)
else:
ds = xc.open_dataset(
ncfile_list[0], data_var=data_var, decode_times=decode_times
ncfile_list[0], data_var=data_var, decode_times=decode_times, chunks=None
)

return ds

0 comments on commit 3966f03

Please sign in to comment.