Skip to content

Accept dictionaries for tidal inference options - #172

Open
antonsoo wants to merge 1 commit into
wesleybowman:masterfrom
antonsoo:fix/inference-mapping
Open

antonsoo wants to merge 1 commit into
wesleybowman:masterfrom
antonsoo:fix/inference-mapping

Conversation

@antonsoo

Copy link
Copy Markdown

solve documents infer as accepting a dictionary, but validation accesses its entries as attributes and raises AttributeError for an ordinary dict.

Copy the mapping into a local Bunch before validation. This accepts the documented input and keeps the optional approximate default from being added to the caller's mapping.

The new scalar/vector regressions fail before this change. All 24 tests pass on Python 3.10/NumPy 1.26 and Python 3.12/NumPy 2.5, and the configured pre-commit checks pass. Inference and continued reconstruction using the supplied Honolulu observations match the existing Bunch path.

This branch has not been deployed

No deployments
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