ArviZ.jl
ArviZ.jl copied to clipboard
Add functions to check schema is followed
This PR adds 2 new API functions:
check_follows_schemafollows_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.
This PR should probably wait on https://github.com/arviz-devs/arviz/pull/2086 to be finalized first.
This work should be moved to https://github.com/arviz-devs/InferenceObjects.jl