Spaces:
No application file
No application file
Download SAMHI/resources/CellViT/preprocessing/patch_extraction/src/utils/exceptions.py from philippendres/CellPilot: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/philippendres/CellPilot/resolve/main/SAMHI/resources/CellViT/preprocessing/patch_extraction/src/utils/exceptions.py
- Command line
-
hf download hf://spaces/philippendres/CellPilot/SAMHI/resources/CellViT/preprocessing/patch_extraction/src/utils/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/philippendres/CellPilot/resolve/main/SAMHI/resources/CellViT/preprocessing/patch_extraction/src/utils/exceptions.py
608 Bytes
| # -*- coding: utf-8 -*- | |
| # Exceptions | |
| # | |
| # @ Fabian Hörst, fabian.hoerst@uk-essen.de | |
| # Institute for Artifical Intelligence in Medicine, | |
| # University Medicine Essen | |
| class WrongParameterException(Exception): | |
| """ | |
| Exceptions that occur when the given parameters are not supported. | |
| """ | |
| pass | |
| class OverwriteException(WrongParameterException): | |
| """ | |
| Exceptions that occur when the data may be overwritten but there is a missing parameter. | |
| """ | |
| pass | |
| class UnalignedDataException(Exception): | |
| """ | |
| Exceptions that occur when the given data is not aligned. | |
| """ | |
| pass | |