-
Notifications
You must be signed in to change notification settings - Fork 9
/
acquisition.py
33 lines (25 loc) · 1007 Bytes
/
acquisition.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from __future__ import absolute_import, division, print_function
import abc
from ispyb.interface.dataarea import DataArea
import ispyb.model.datacollection
class IF(DataArea):
@abc.abstractmethod
def get_data_collection_group_params(cls):
pass
@abc.abstractmethod
def get_data_collection_params(cls):
pass
@abc.abstractmethod
def upsert_data_collection_group(self, cursor, values):
'''Store new MX data collection group.'''
pass
@abc.abstractmethod
def upsert_data_collection(self, cursor, values):
'''Store new data collection.'''
pass
def get_data_collection(self, dcid):
'''Return a DataCollection object representing the information about the
selected data collection'''
import warnings
warnings.warn("Object model getter call on the data area is deprecated and will be removed in the next release. Call the function on connection object instead.", DeprecationWarning)
return ispyb.model.datacollection.DataCollection(dcid, self)