scitacean.model.Technique#

class scitacean.model.Technique(*, name, pid)[source]#

Constructors

__init__(*, name, pid)

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

name

pid

__init__(*, name, pid)#
classmethod download_model_type()[source]#

Return the download model type for this user model.

Return type:

type[DownloadTechnique]

classmethod from_download_model(download_model)[source]#

Construct an instance from an associated SciCat download model.

Return type:

Technique

make_upload_model()[source]#

Construct a SciCat upload model from self.

Return type:

UploadTechnique

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[UploadTechnique]