pyicat_plus.utils.sync_types.IcatInvestigation#

class pyicat_plus.utils.sync_types.IcatInvestigation(id, url, search_url, registered_datasets, startdate=None, enddate=None)[source]#

Bases: object

Parameters:
  • id (str)

  • url (str)

  • search_url (str)

  • registered_datasets (List[Dataset])

  • startdate (Optional[datetime])

  • enddate (Optional[datetime])

as_dict()[source]#
Return type:

Dict[str, Any]

property duration: timedelta | None#
enddate: Optional[datetime] = None#
property ended: bool#
classmethod from_dict(data)[source]#

Factory method to create an IcatInvestigation instance from a dictionary.

Parameters:

data (Dict[str, Any])

Return type:

IcatInvestigation

property has_timeslot: bool#
id: str#
property ongoing: bool#
property open_ended: bool#
pprint()[source]#
Return type:

None

registered_datasets: List[Dataset]#
search_url: str#
startdate: Optional[datetime] = None#
property started: bool#
property timeslot: str#
url: str#