scitacean.model.Proposal#

class scitacean.model.Proposal(*, email, owner_group, proposal_id, title, measurement_period_list=None, abstract=None, access_groups=None, end_time=None, firstname=None, instrument_group=None, lastname=None, metadata=None, parent_proposal_id=None, pi_email=None, pi_firstname=None, pi_lastname=None, start_time=None, type=None, _created_at=None, _created_by=None, _is_published=None, _updated_at=None, _updated_by=None)[source]#

Constructors

__init__(*, email, owner_group, proposal_id, ...)

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

email

owner_group

proposal_id

title

measurement_period_list

abstract

access_groups

end_time

firstname

instrument_group

lastname

metadata

parent_proposal_id

pi_email

pi_firstname

pi_lastname

start_time

type

created_at

created_by

is_published

updated_at

updated_by

__init__(*, email, owner_group, proposal_id, title, measurement_period_list=None, abstract=None, access_groups=None, end_time=None, firstname=None, instrument_group=None, lastname=None, metadata=None, parent_proposal_id=None, pi_email=None, pi_firstname=None, pi_lastname=None, start_time=None, type=None, _created_at=None, _created_by=None, _is_published=None, _updated_at=None, _updated_by=None)#
classmethod download_model_type()[source]#

Return the download model type for this user model.

Return type:

type[DownloadProposal]

classmethod from_download_model(download_model)[source]#

Construct an instance from an associated SciCat download model.

Return type:

Proposal

make_upload_model()[source]#

Construct a SciCat upload model from self.

Return type:

UploadProposal

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