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])
- 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:
- property has_timeslot: bool#
-
id:
str#
- property ongoing: bool#
- property open_ended: bool#
-
search_url:
str#
-
startdate:
Optional[datetime] = None#
- property started: bool#
- property timeslot: str#
-
url:
str#