scitacean.model.Sample#

class scitacean.model.Sample(*, owner_group, access_groups=None, description=None, instrument_group=None, is_published=None, owner=None, sample_characteristics=None, sample_id=None, _created_at=None, _created_by=None, _updated_at=None, _updated_by=None)[source]#

Constructors

__init__(*, owner_group[, access_groups, ...])

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

owner_group

access_groups

description

instrument_group

is_published

owner

sample_characteristics

sample_id

created_at

created_by

updated_at

updated_by

__init__(*, owner_group, access_groups=None, description=None, instrument_group=None, is_published=None, owner=None, sample_characteristics=None, sample_id=None, _created_at=None, _created_by=None, _updated_at=None, _updated_by=None)#
classmethod download_model_type()[source]#

Return the download model type for this user model.

Return type:

type[DownloadSample]

classmethod from_download_model(download_model)[source]#

Construct an instance from an associated SciCat download model.

Return type:

Sample

make_upload_model()[source]#

Construct a SciCat upload model from self.

Return type:

UploadSample

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