Skip to content

Commit 369398a

Browse files
committed
Fix (another) CaseData.trim_iters() bug
1 parent 5f69aa1 commit 369398a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cape/cfdx/casedata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,6 @@ def apply_mask_iters(self, mask: np.ndarray):
11291129
"""
11301130
# Find appropriate columns
11311131
cols = self.get_cols_parent(CASE_COL_ITERS)
1132-
cols.append(CASE_COL_ITERS)
11331132
# Apply mask to each
11341133
for col in cols:
11351134
self[col] = self[col][mask]
@@ -1160,7 +1159,7 @@ def get_cols_parent(self, col: str) -> list:
11601159
# Loop through cols
11611160
for colj, vj in self.items():
11621161
# Get parent
1163-
parent = parents.get(colj, "")
1162+
parent = parents.get(colj, colj)
11641163
# Check
11651164
if (parent == col) and (len(vj) == n):
11661165
cols.append(colj)

0 commit comments

Comments
 (0)