Source code for simdb.validation.file.validator_base
from abc import ABC, abstractmethod
from simdb.imas.utils import SimDBUrl
[docs]
class FileValidatorBase(ABC):
"""
Abstract base class for validating a simulation output file.
"""
[docs]
@abstractmethod
def options(self) -> dict:
"""
Return a dictionary of options required to configure the validator into the same
state.
"""
[docs]
@abstractmethod
def validate_uri(self, uri: SimDBUrl, validate_options):
"""
Validate the given simulation output file.
"""