netunicorn.base.experiment.ExperimentStatus

class ExperimentStatus(value)[source]

Bases: Enum

Represents a status of an experiment.

Attributes

UNKNOWN

Unknown status.

PREPARING

Experiment is under preparation.

READY

Experiment is prepared and ready to be started.

RUNNING

Experiment is running.

FINISHED

Experiment is finished.

Methods

from_json

Converts a JSON representation of an experiment status to an instance of ExperimentStatus.

UNKNOWN = 0[source]

Unknown status.

PREPARING = 1[source]

Experiment is under preparation.

READY = 2[source]

Experiment is prepared and ready to be started.

RUNNING = 3[source]

Experiment is running.

FINISHED = 4[source]

Experiment is finished.

classmethod from_json(value)[source]

Converts a JSON representation of an experiment status to an instance of ExperimentStatus.

Parameters:

value (int) – experiment status value.

Returns:

ExperimentStatus – an instance of ExperimentStatus.