resistics.errors module¶
Module for custom resistics errors
- exception resistics.errors.PathError(path: pathlib.Path)[source]¶
Bases:
Exception
Use for a general error with paths
- exception resistics.errors.PathNotFoundError(path: pathlib.Path)[source]¶
Bases:
resistics.errors.PathError
Use if path does not exist
- exception resistics.errors.NotFileError(path: pathlib.Path)[source]¶
Bases:
resistics.errors.PathError
Use if expected a file and got a directory
- exception resistics.errors.NotDirectoryError(path: pathlib.Path)[source]¶
Bases:
resistics.errors.PathError
Use if expected a directory and got a file
- exception resistics.errors.WriteError(path: pathlib.Path, message: str = '')[source]¶
Bases:
Exception
- exception resistics.errors.ReadError(path: pathlib.Path, message: str = '')[source]¶
Bases:
Exception
- exception resistics.errors.MetadataReadError(path: pathlib.Path, message: Optional[str] = None)[source]¶
Bases:
Exception
Use when failed to read a metadata
- exception resistics.errors.ProjectPathError(project_dir: pathlib.Path, message: str)[source]¶
Bases:
Exception
Use for a general error with a project path
- exception resistics.errors.ProjectCreateError(project_dir: pathlib.Path, message: str)[source]¶
Bases:
resistics.errors.ProjectPathError
Use if encounter an error creating a project
- exception resistics.errors.ProjectLoadError(project_dir: pathlib.Path, message: str)[source]¶
Bases:
resistics.errors.ProjectPathError
Use if error on project load
- exception resistics.errors.MeasurementNotFoundError(site_name: str, meas_name: str)[source]¶
Bases:
Exception
Use if unable to find a measurement
- exception resistics.errors.SiteNotFoundError(site_name: str)[source]¶
Bases:
Exception
Use if unable to find a site
- exception resistics.errors.TimeDataReadError(dir_path: pathlib.Path, message: str)[source]¶
Bases:
Exception
Use when encounter an error reading time series data
- exception resistics.errors.ChannelNotFoundError(chan: str, chans: Collection[str])[source]¶
Bases:
Exception
Use when a channel is not found
- exception resistics.errors.CalibrationFileNotFound(dir_path: pathlib.Path, file_paths: Union[pathlib.Path, List[pathlib.Path]], message: str = '')[source]¶
Bases:
Exception
Use when calibration files are not found