Add plain SciPy wrapper factory - #78
Draft
jonathanberthias wants to merge 4 commits into
Draft
jonathanberthias wants to merge 4 commits into
jonathanberthias wants to merge 4 commits into
Conversation
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
from
September 26, 2026 14:25
870d95c to
edd5aec
Compare
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
from
September 26, 2026 19:15
edd5aec to
015a90d
Compare
jonathanberthias
added this pull request to stack #84
September 26, 2026 19:15
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
from
September 26, 2026 19:28
015a90d to
5072864
Compare
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
3 times, most recently
from
September 26, 2026 19:52
db45112 to
41d603f
Compare
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
4 times, most recently
from
September 27, 2026 13:50
f59b761 to
44214eb
Compare
jonathanberthias
force-pushed
the
migration/scipy-wrapper-factory
branch
from
October 2, 2026 22:25
c966e8b to
638158d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The explicit-state path began with a handwritten Normal example. Repeating its constructor, parameter resolution, and evaluation code for each plain SciPy law would make the catalog hard to maintain. Keeping the SciPy implementation in
distributions/core.pywould also make every future backend depend on SciPy.This PR adds a factory for opt-in continuous wrappers that expose SciPy's native shape names. It moves the concrete SciPy implementation and its parameter defaults to
distributions/scipy_adapter.py, leaving backend-independent contracts indistributions/core.py. Normal uses the factory, while Gamma and Genextreme demonstrate required shape parameters.Generated constructors have useful runtime signatures but looser static typing. The concrete adapter remains available as a precisely typed construction path until the public API cutover.