wsinfer.errors#

Exceptions used in WSInfer.

Exceptions#

WsinferException

Base class for wsinfer exceptions.

UnknownArchitectureError

Architecture is unknown and cannot be found.

WholeSlideImageDirectoryNotFound

Base class for wsinfer exceptions.

DuplicateFilePrefixesFound

A duplicate file prefix has been found.

WholeSlideImagesNotFound

Base class for wsinfer exceptions.

ResultsDirectoryNotFound

Base class for wsinfer exceptions.

PatchDirectoryNotFound

Base class for wsinfer exceptions.

CannotReadSpacing

Base class for wsinfer exceptions.

NoBackendException

Base class for wsinfer exceptions.

BackendNotAvailable

The requested backend is not available.

Module Contents#

exception wsinfer.errors.WsinferException[source]#

Bases: Exception

Base class for wsinfer exceptions.

exception wsinfer.errors.UnknownArchitectureError[source]#

Bases: WsinferException

Architecture is unknown and cannot be found.

exception wsinfer.errors.WholeSlideImageDirectoryNotFound[source]#

Bases: WsinferException, FileNotFoundError

Base class for wsinfer exceptions.

exception wsinfer.errors.DuplicateFilePrefixesFound[source]#

Bases: WsinferException

A duplicate file prefix has been found.

An example of duplicate file prefixes is files a.svs and a.tif. WSInfer relies on the stems as a unique ID, so we cannot allow duplicate stems.

exception wsinfer.errors.WholeSlideImagesNotFound[source]#

Bases: WsinferException, FileNotFoundError

Base class for wsinfer exceptions.

exception wsinfer.errors.ResultsDirectoryNotFound[source]#

Bases: WsinferException, FileNotFoundError

Base class for wsinfer exceptions.

exception wsinfer.errors.PatchDirectoryNotFound[source]#

Bases: WsinferException, FileNotFoundError

Base class for wsinfer exceptions.

exception wsinfer.errors.CannotReadSpacing[source]#

Bases: WsinferException

Base class for wsinfer exceptions.

exception wsinfer.errors.NoBackendException[source]#

Bases: WsinferException

Base class for wsinfer exceptions.

exception wsinfer.errors.BackendNotAvailable[source]#

Bases: WsinferException

The requested backend is not available.