Skip to content

Commit

Permalink
extend bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhajharia committed Jun 7, 2021
1 parent 4d9caca commit 77f2a4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions arviz/data/inference_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1394,10 +1394,11 @@ def extend(self, other, join="left"):
)
dataset = getattr(other, group)
setattr(self, group, dataset)
if group.startswith(WARMUP_TAG):
self._groups_warmup.append(group)
else:
self._groups.append(group)
if not hasattr(self, group):
if group.startswith(WARMUP_TAG):
self._groups_warmup.append(group)
else:
self._groups.append(group)

set_index = _extend_xr_method(xr.Dataset.set_index, see_also="reset_index")
get_index = _extend_xr_method(xr.Dataset.get_index)
Expand Down

0 comments on commit 77f2a4c

Please sign in to comment.