Skip to content

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

Open
MilesCranmerBot wants to merge 2 commits into
astroautomata:masterfrom
MilesCranmerBot:input-stream-backend-default
Open

feat: default input_stream to None to let SR.jl choose backend default#1208
MilesCranmerBot wants to merge 2 commits into
astroautomata:masterfrom
MilesCranmerBot:input-stream-backend-default

Conversation

@MilesCranmerBot

Copy link
Copy Markdown
Contributor

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 miles.cranmer@gmail.com

PySR previously passed input_stream="stdin" explicitly to SymbolicRegression.jl,
overriding the backend default. This prevented SymbolicRegression.jl PR astroautomata#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 astroautomata#832.
References SymbolicRegression.jl PR astroautomata#622.

Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.15%. Comparing base (9283914) to head (4faea12).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pysr/sr.py 66.66% 1 Missing ⚠️
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     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@MilesCranmerBot MilesCranmerBot force-pushed the input-stream-backend-default branch 2 times, most recently from ce90a08 to 8105905 Compare June 21, 2026 19:37
@MilesCranmerBot MilesCranmerBot force-pushed the input-stream-backend-default branch from 8105905 to 4faea12 Compare June 22, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant