Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cf/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ def __getitem__(self, indices):
domain_axes[axis].set_size(size)

# Record which axes were cyclic before the subspace
org_cyclic = [data_axes.index(axis) for axis in new.cyclic()]
org_cyclic = [
data_axes.index(axis) for axis in new.cyclic() if axis in data_axes
]

# Set the subspaced data
new.set_data(new_data, axes=data_axes, copy=False)
Expand Down