Skip to content

Commit

Permalink
Merge pull request #132 from MilesCranmer/deepsource-transform-9db962a5
Browse files Browse the repository at this point in the history
Format code with black
  • Loading branch information
MilesCranmer committed May 8, 2022
2 parents 50f37a0 + b13cd4f commit bfd7114
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,6 @@ def _run(self, X, y, weights, variable_names):
nested_constraints_str += ")"
nested_constraints = Main.eval(nested_constraints_str)


if not already_ran:
Main.eval("using Pkg")
io = "devnull" if self.params["update_verbosity"] == 0 else "stderr"
Expand Down
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def test_pandas_resample_with_nested_constraints(self):
Xresampled=Xresampled,
denoise=True,
select_k_features=2,
nested_constraints={"/": {"+": 1, "-": 1}, "+": {"*": 4}}
nested_constraints={"/": {"+": 1, "-": 1}, "+": {"*": 4}},
)
model.fit(X, y)
self.assertNotIn("unused_feature", model.latex())
Expand Down

0 comments on commit bfd7114

Please sign in to comment.