nipoppy.tabular.base.BaseTabularModel¶
- class nipoppy.tabular.base.BaseTabularModel(/, **data)¶
Helper class for validating tabular data.
Subclasses should define fields and their types, and optionally override the _validate_before_fields() method.
Note: This class is called “model” to be consistent with Pydantic nomenclature, but it can be thought of as a schema for each row in the tabular file.
- Parameters:
data (Any)
- classmethod validate_before(data)¶
Validate the raw input.
- Parameters:
data (Any)