Spaces:
Sleeping
Sleeping
Commit
·
e0a69cb
1
Parent(s):
9dc8d8f
Fix potential bug with equation file in different dir
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
|
@@ -439,7 +439,7 @@ migration={'true' if migration else 'false'},
|
|
| 439 |
hofMigration={'true' if hofMigration else 'false'},
|
| 440 |
fractionReplacedHof={fractionReplacedHof}f0,
|
| 441 |
shouldOptimizeConstants={'true' if shouldOptimizeConstants else 'false'},
|
| 442 |
-
hofFile="{equation_file}",
|
| 443 |
npopulations={populations:d},
|
| 444 |
nrestarts={nrestarts:d},
|
| 445 |
perturbationFactor={perturbationFactor:f}f0,
|
|
|
|
| 439 |
hofMigration={'true' if hofMigration else 'false'},
|
| 440 |
fractionReplacedHof={fractionReplacedHof}f0,
|
| 441 |
shouldOptimizeConstants={'true' if shouldOptimizeConstants else 'false'},
|
| 442 |
+
hofFile="{_escape_filename(equation_file)}",
|
| 443 |
npopulations={populations:d},
|
| 444 |
nrestarts={nrestarts:d},
|
| 445 |
perturbationFactor={perturbationFactor:f}f0,
|