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

Add functions to check schema is followed #210

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

sethaxen
Copy link
Member

@sethaxen sethaxen commented Aug 8, 2022

This PR adds 2 new API functions:

  • check_follows_schema
  • follows_schema

These are used to check whether an InferenceData object correctly follows the InferenceData schema. We may want to include this in the InferenceData constructor with the option to disable the check, but at least having these utility functions as part of the API is useful for anyone who wants to write their own converter so they can check that the output is valid.

@sethaxen
Copy link
Member Author

sethaxen commented Aug 8, 2022

This PR should probably wait on arviz-devs/arviz#2086 to be finalized first.

@sethaxen
Copy link
Member Author

This work should be moved to https://github.com/arviz-devs/InferenceObjects.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant