當前位置: 首頁>>代碼示例>>Python>>正文


Python Entity.__init__方法代碼示例

本文整理匯總了Python中everest.entities.base.Entity.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python Entity.__init__方法的具體用法?Python Entity.__init__怎麽用?Python Entity.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在everest.entities.base.Entity的用法示例。


在下文中一共展示了Entity.__init__方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:9,代碼來源:location.py

示例2: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:everest-demo,代碼行數:9,代碼來源:species.py

示例3: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:9,代碼來源:sample.py

示例4: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:9,代碼來源:device.py

示例5: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:9,代碼來源:container.py

示例6: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:10,代碼來源:library.py

示例7: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:10,代碼來源:moleculedesign.py

示例8: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:b8va,項目名稱:everest,代碼行數:10,代碼來源:entities.py

示例9: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:10,代碼來源:tubetransfer.py

示例10: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:10,代碼來源:user.py

示例11: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:10,代碼來源:experiment.py

示例12: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:11,代碼來源:liquidtransfer.py

示例13: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:11,代碼來源:iso.py

示例14: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:helixyte,項目名稱:TheLMA,代碼行數:11,代碼來源:rack.py

示例15: __init__

# 需要導入模塊: from everest.entities.base import Entity [as 別名]
# 或者: from everest.entities.base.Entity import __init__ [as 別名]
 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
開發者ID:BigData-Tools,項目名稱:everest,代碼行數:11,代碼來源:system.py


注:本文中的everest.entities.base.Entity.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。