PySR icon indicating copy to clipboard operation
PySR copied to clipboard

fix: clarify TemplateExpressionSpec reload errors

Open MilesCranmerBot opened this issue 5 months ago • 1 comments

Fixes #846.

  • Detect pickled/reloaded TemplateExpressionSpec models
  • Raise a targeted unsupported-reload error for predict/export paths
  • Add regression coverage for the error message

MilesCranmerBot avatar Jun 22 '26 19:06 MilesCranmerBot

Codecov Report

:x: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review. :white_check_mark: Project coverage is 94.21%. Comparing base (beaa405) to head (762cb0c).

Files with missing lines Patch % Lines
pysr/sr.py 75.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1210      +/-   ##
==========================================
- Coverage   94.26%   94.21%   -0.05%     
==========================================
  Files          21       21              
  Lines        1690     1694       +4     
==========================================
+ Hits         1593     1596       +3     
- Misses         97       98       +1     

: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 22 '26 19:06 codecov[bot]