Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pydantic v2 #447

Merged
merged 10 commits into from
Oct 16, 2023
Merged

Pydantic v2 #447

merged 10 commits into from
Oct 16, 2023

Conversation

teddygroves
Copy link
Member

This change updates Maud to use pydantic version 2 and takes advantage of the new computed_field feature to remove some of Maud's awkward parsing modules.

There should be no change from the user's point of view. However, this change is a necessary first step before allowing parameter values to be fixed as per #442.

Checklist:

  • Updated any relevant documentation
  • Add an adr doc if appropriate
  • Include links to any relevant issues in the description
  • Unit tests passing
  • Integration tests passing

Copy link
Member

@carrascomj carrascomj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think we can merge #448 into this one and merge into main.

maud/getting_stan_inputs.py Show resolved Hide resolved
maud/data_model/maud_parameter.py Outdated Show resolved Hide resolved
Copy link
Contributor

@NicholasCowie NicholasCowie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change to the code. Much easier to change features in the future

@NicholasCowie NicholasCowie merged commit 8a8be49 into main Oct 16, 2023
6 checks passed
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.

3 participants