pylbo.exceptions

Exceptions

LegolasException

Exception superclass to handle Legolas exceptions.

InvalidLegolasFile

Handles trying to load invalid Legolas files.

BackgroundNotPresent

Handles trying to query for the background when this is not present in the datfile.

EigenfunctionsNotPresent

Handles trying to query for eigenfunctions when these

MatricesNotPresent

Handles trying to query for matrices when these

EigenvectorsNotPresent

Handles trying to query for eigenvectors when

ResidualsNotPresent

Handles trying to query for residuals when

ParfileGenerationError

Gets thrown when something went wrong during parfile generation.

Module Contents

exception pylbo.exceptions.LegolasException(message=None)[source]

Bases: Exception

Exception superclass to handle Legolas exceptions.

Parameters:

message (str) – The message to pass as error message.

exception pylbo.exceptions.InvalidLegolasFile(file)[source]

Bases: LegolasException

Handles trying to load invalid Legolas files.

Parameters:

file (str, PathLike) – The path to the file.

file[source]
exception pylbo.exceptions.BackgroundNotPresent(file, unable_to_get=None)[source]

Bases: LegolasException

Handles trying to query for the background when this is not present in the datfile.

Parameters:
  • file (str, PathLike) – The path to the file.

  • unable_to_do (str) – The thing that was unable to be done.

file[source]
unable_to_do[source]
exception pylbo.exceptions.EigenfunctionsNotPresent(msg)[source]

Bases: LegolasException

Handles trying to query for eigenfunctions when these are not present in the datfile.

Parameters:

msg (str) – The error message to pass on.

msg[source]
exception pylbo.exceptions.MatricesNotPresent(file)[source]

Bases: LegolasException

Handles trying to query for matrices when these are not present in the datfile.

Parameters:

file (str, PathLike) – The path to the file.

file[source]
exception pylbo.exceptions.EigenvectorsNotPresent(file)[source]

Bases: LegolasException

Handles trying to query for eigenvectors when these are not present in the datfile.

Parameters:

file (str, PathLike) – The path to the file.

file[source]
exception pylbo.exceptions.ResidualsNotPresent(file)[source]

Bases: LegolasException

Handles trying to query for residuals when these are not present in the datfile.

Parameters:

file (str, PathLike) – The path to the file.

file[source]
exception pylbo.exceptions.ParfileGenerationError(file, nb_runs=None, key=None)[source]

Bases: LegolasException

Gets thrown when something went wrong during parfile generation.

file[source]
nb_runs[source]
key[source]