Skip to content

Commit

Permalink
fixes a bug where Prim modifies the experiments array (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel authored Mar 5, 2023
1 parent c7db10d commit b003ee1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ema_workbench/analysis/prim.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ def __init__(
assert mode in {sdutil.RuleInductionType.BINARY, sdutil.RuleInductionType.REGRESSION}
assert self._assert_mode(y, mode, update_function)
# preprocess x
x = x.copy()

try:
x.drop(columns="scenario", inplace=True)
except KeyError:
Expand Down

0 comments on commit b003ee1

Please sign in to comment.