Skip to content

Commit

Permalink
Merge pull request #81 from tethys-ts/dev
Browse files Browse the repository at this point in the history
minor update to xr_concat
  • Loading branch information
mullenkamp committed Dec 14, 2022
2 parents c061592 + 5bc5919 commit b2568aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "tethysts" %}
{% set version = "4.5.9" %}
{% set version = "4.5.10" %}
# {% set sha256 = "ae2cc83fb5a75e8dc3e1b2c2137deea412c8a4c7c9acca52bf4ec59de52a80c9" %}

# sha256 is the prefered checksum -- you can get it for a file with:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name = 'tethysts'
main_package = 'tethysts'
datasets = 'datasets/time_series'
version = '4.5.9'
version = '4.5.10'
descrip = 'tethys time series S3 extraction'

# The below code is for readthedocs. To have sphinx/readthedocs interact with
Expand Down
5 changes: 5 additions & 0 deletions tethysts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@ def xr_concat(datasets: List[xr.Dataset]):
xr3[var].attrs = var_dict['attrs']
xr3[var].encoding = var_dict['enc']

# Update the attributes in the coords from the first ds
for coord in xr3.coords:
xr3[coord].encoding = datasets[0][coord].encoding
xr3[coord].attrs = datasets[0][coord].attrs

# Fill the dataset with data
for chunk in datasets:
for var in chunk.data_vars:
Expand Down

0 comments on commit b2568aa

Please sign in to comment.