Skip to content

Commit 5f37fd4

Browse files
committed
Add _cache attribute to CFTimeIndex
1 parent b49b782 commit 5f37fd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xarray/coding/cftimeindex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def __new__(cls, data, name=None):
253253
result = object.__new__(cls)
254254
result._data = np.array(data, dtype="O")
255255
result.name = name
256+
result._cache = {}
256257
return result
257258

258259
def _partial_date_slice(self, resolution, parsed):

0 commit comments

Comments
 (0)