本文整理汇总了Python中everest.entities.base.Entity类的典型用法代码示例。如果您正苦于以下问题:Python Entity类的具体用法?Python Entity怎么用?Python Entity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Entity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, rack, location, checkin_date=None, **kw):
Entity.__init__(self, **kw)
self.rack = rack
self.location = location
if checkin_date is None:
checkin_date = datetime.datetime.now()
self.checkin_date = checkin_date
示例2: __init__
def __init__(self, species_name, genus_name,
cultivar=None, author=None, **kw):
Entity.__init__(self, **kw)
self.species_name = species_name
self.genus_name = genus_name
self.cultivar = cultivar
self.author = author
示例3: __init__
def __init__(self, sample, volume, time_stamp=None, **kw):
Entity.__init__(self, **kw)
self.sample = sample
self.volume = volume
if time_stamp is None:
time_stamp = get_utc_time()
self.time_stamp = time_stamp
示例4: __init__
def __init__(self, name, label, devices=None, **kw):
Entity.__init__(self, **kw)
self.name = name
self.label = label
if devices is None:
devices = []
self.devices = devices
示例5: __init__
def __init__(self, specs, status, sample=None, **kw):
Entity.__init__(self, **kw)
if self.__class__ is Container:
raise NotImplementedError("Abstract class")
self.specs = specs
self.status = status
self.sample = sample
示例6: __init__
def __init__(self, molecule_design_library, rack, layout_number,
has_been_used=False, lab_iso=None, **kw):
Entity.__init__(self, **kw)
self.molecule_design_library = molecule_design_library
self.rack = rack
self.layout_number = layout_number
self.has_been_used = has_been_used
self.lab_iso = lab_iso
示例7: __init__
def __init__(self, set_type, molecule_designs=None, **kw):
if self.__class__ is MoleculeDesignSetBase:
raise NotImplementedError('Abstract class.')
Entity.__init__(self, **kw)
if molecule_designs is None:
molecule_designs = set()
self.set_type = set_type
self.molecule_designs = molecule_designs
示例8: __init__
def __init__(self, text=None, text_ent=None, **kw):
Entity.__init__(self, **kw)
if text is None:
text = self.DEFAULT_TEXT
self.text = text
if text_ent is None:
text_ent = self.DEFAULT_TEXT
self.text_ent = text_ent
示例9: __init__
def __init__(self, tube, source_rack, source_position, target_rack,
target_position, **kw):
Entity.__init__(self, **kw)
self.tube = tube
self.source_rack = source_rack
self.source_position = source_position
self.target_rack = target_rack
self.target_position = target_position
示例10: __init__
def __init__(self, username, directory_user_id, user_preferenceses=None,
**kw):
Entity.__init__(self, **kw)
self.username = username
self.directory_user_id = directory_user_id
if user_preferenceses is None:
user_preferenceses = []
self.user_preferenceses = user_preferenceses
示例11: __init__
def __init__(self, label, rack_layout, experiment_design=None,
worklist_series=None,
**kw):
Entity.__init__(self, **kw)
self.label = label
self.rack_layout = rack_layout
self.experiment_design = experiment_design
self.worklist_series = worklist_series
示例12: __init__
def __init__(self, name, description, rack_shape, max_volume,
min_dead_volume, max_dead_volume, **kw):
Entity.__init__(self, **kw)
self._name = name
self._description = description
self._rack_shape = rack_shape
self._max_volume = max_volume
self._min_dead_volume = min_dead_volume
self._max_dead_volume = max_dead_volume
示例13: __init__
def __init__(self, iso, rack, iso_plate_type=None, **kw):
Entity.__init__(self, **kw)
if self.__class__ is IsoPlate:
raise NotImplementedError('Abstract class')
if iso_plate_type is None:
iso_plate_type = ISO_PLATE_TYPES.ISO_PLATE
self.iso_plate_type = iso_plate_type
self.iso = iso
self.rack = rack
示例14: __init__
def __init__(self, positions, hash_value, **kw):
"""
This construction should not be used. Use the factory method
:func:`from_positions` to load a potential existing rack position
set from DB instead of creating a new one.
"""
Entity.__init__(self, **kw)
self._positions = positions
self._hash_value = hash_value
示例15: __init__
def __init__(self, text, guid=None, time_stamp=None, **kw):
Entity.__init__(self, **kw)
if guid is None:
guid = str(uuid.uuid4())
if time_stamp is None:
time_stamp = datetime.now()
self.text = text
self.guid = guid
self.time_stamp = time_stamp