Skip to content

Commit

Permalink
Merge branch 'only-copyonwrite-backendarrays' of https://github.com/T…
Browse files Browse the repository at this point in the history
…omNicholas/xarray into only-copyonwrite-backendarrays
  • Loading branch information
TomNicholas committed Feb 6, 2024
2 parents c80fefd + ca17266 commit 3f2b82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _protect_dataset_variables_inplace(dataset, cache):
# only need to protect arrays that were lazy-loaded from disk
data = indexing.CopyOnWriteArray(variable._data)
else:
data = variable.data
data = variable._data

if cache:
data = indexing.MemoryCachedArray(data)
Expand Down

0 comments on commit 3f2b82d

Please sign in to comment.