Spaces:
Sleeping
Sleeping
deepsource-autofix[bot]
commited on
Commit
•
c0f4a2f
1
Parent(s):
816c213
Format code with black
Browse filesThis commit fixes the style issues introduced in 816c213 according to the output
from black.
Details: https://deepsource.io/gh/MilesCranmer/PySR/transform/e57b6fef-eefc-4d29-bb6a-4b461cba6c8e/
- docs/generate_papers.py +1 -1
- pysr/sr.py +2 -2
docs/generate_papers.py
CHANGED
@@ -57,4 +57,4 @@ with open(output_file, "w") as f:
|
|
57 |
"""
|
58 |
snippets.append(paper_snippet)
|
59 |
|
60 |
-
f.write("\n\n---\n\n".join(snippets))
|
|
|
57 |
"""
|
58 |
snippets.append(paper_snippet)
|
59 |
|
60 |
+
f.write("\n\n---\n\n".join(snippets))
|
pysr/sr.py
CHANGED
@@ -1036,7 +1036,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1036 |
def _setup_equation_file(self):
|
1037 |
"""
|
1038 |
Set the full pathname of the equation file.
|
1039 |
-
|
1040 |
This is performed using `tempdir` and
|
1041 |
`equation_file`.
|
1042 |
"""
|
@@ -1678,7 +1678,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1678 |
def refresh(self, checkpoint_file=None):
|
1679 |
"""
|
1680 |
Update self.equations_ with any new options passed.
|
1681 |
-
|
1682 |
For example, updating `extra_sympy_mappings`
|
1683 |
will require a `.refresh()` to update the equations.
|
1684 |
|
|
|
1036 |
def _setup_equation_file(self):
|
1037 |
"""
|
1038 |
Set the full pathname of the equation file.
|
1039 |
+
|
1040 |
This is performed using `tempdir` and
|
1041 |
`equation_file`.
|
1042 |
"""
|
|
|
1678 |
def refresh(self, checkpoint_file=None):
|
1679 |
"""
|
1680 |
Update self.equations_ with any new options passed.
|
1681 |
+
|
1682 |
For example, updating `extra_sympy_mappings`
|
1683 |
will require a `.refresh()` to update the equations.
|
1684 |
|