PySR icon indicating copy to clipboard operation
PySR copied to clipboard

feat: default input_stream to None to let SR.jl choose backend default

Open MilesCranmerBot opened this issue 5 months ago • 1 comments

PySR previously passed input_stream="stdin" explicitly to SymbolicRegression.jl, overriding the backend default. This prevented SymbolicRegression.jl PR #622 from autoselecting devnull on Windows/WSL where stdin hangs.

With this change:

  • input_stream=None (default) omits the kwarg from Options(), letting SR.jl decide.
  • input_stream="stdin" or "devnull" still passes through explicitly.

Fixes PySR issue #832. References SymbolicRegression.jl PR #622 (bot/autoselect-devnull-input-stream).

Co-authored-by: Miles Cranmer [email protected]

MilesCranmerBot avatar Jun 21 '26 15:06 MilesCranmerBot

Codecov Report

:x: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review. :white_check_mark: Project coverage is 94.15%. Comparing base (9283914) to head (4faea12). :warning: Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pysr/sr.py 66.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1208      +/-   ##
==========================================
- Coverage   94.24%   94.15%   -0.10%     
==========================================
  Files          21       21              
  Lines        1686     1694       +8     
==========================================
+ Hits         1589     1595       +6     
- Misses         97       99       +2     

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jun 21 '26 15:06 codecov[bot]