Skip to content

Commit

Permalink
Merge pull request #369 from AdamTheisen/single_file
Browse files Browse the repository at this point in the history
ENH: There's a bug in that open_mfdataset defaults to open_dataset if…
  • Loading branch information
jhemedin authored Nov 5, 2021
2 parents ad6d5e9 + f3206d5 commit b362a33
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions act/io/armfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ def read_netcdf(filenames, concat_dim=None, return_None=False,
file_times = []

# Add funciton keywords to kwargs dictionary for passing into open_mfdataset.
kwargs['combine'] = combine
kwargs['concat_dim'] = concat_dim
kwargs['use_cftime'] = use_cftime
kwargs['combine_attrs'] = combine_attrs
if len(filenames) > 1:
kwargs['combine'] = combine
kwargs['concat_dim'] = concat_dim
kwargs['use_cftime'] = use_cftime
kwargs['combine_attrs'] = combine_attrs

# Create an exception tuple to use with try statements. Doing it this way
# so we can add the FileNotFoundError if requested. Can add more error
Expand Down

0 comments on commit b362a33

Please sign in to comment.