scitacean.model.MeasurementPeriod#

class scitacean.model.MeasurementPeriod(*, end, instrument, start, comment=None)[source]#

Constructors

__init__(*, end, instrument, start[, comment])

Methods

download_model_type()

Return the download model type for this user model.

from_download_model(download_model)

Construct an instance from an associated SciCat download model.

make_upload_model()

Construct a SciCat upload model from self.

upload_model_type()

Return the upload model type for this user model.

Attributes

end

instrument

start

comment

__init__(*, end, instrument, start, comment=None)#
classmethod download_model_type()[source]#

Return the download model type for this user model.

Return type:

type[DownloadMeasurementPeriod]

classmethod from_download_model(download_model)[source]#

Construct an instance from an associated SciCat download model.

Return type:

MeasurementPeriod

make_upload_model()[source]#

Construct a SciCat upload model from self.

Return type:

UploadMeasurementPeriod

classmethod upload_model_type()[source]#

Return the upload model type for this user model.

Returns None if the model cannot be uploaded.

Return type:

type[UploadMeasurementPeriod]