Beispiel #1
0
class ProcessTypeProcessOutput(object):

    instance = None
    name = None
    root = None
    tag = ''

    artifact_type = StringDescriptor('artifact-type')
    display_name = StringDescriptor('display-name')
    output_generation_type = StringDescriptor('output-generation-type')
    variability_type = StringDescriptor('variability-type')
    number_of_outputs = IntegerDescriptor('number-of-outputs')
    output_name = StringDescriptor('output-name')
    field_definitions = EntityListDescriptor('field-definition', Udfconfig)

    def __init__(self, pt_instance, node):
        self.instance = pt_instance
        self.root = node
        self.lims = pt_instance.lims

    def __repr__(self):
        return "{0}({1})".format(self.__class__.__name__, self.output_name)

    def get(self):
        pass
Beispiel #2
0
class ReagentLot(Entity):
    """Reagent Lots contain information about a particualr lot of reagent used in a step"""
    _URI = "reagentlots"
    _TAG = "reagent-lot"
    _PREFIX = 'lot'

    reagent_kit = EntityDescriptor('reagent-kit', ReagentKit)
    name = StringDescriptor('name')
    lot_number = StringDescriptor('lot-number')
    created_date = StringDescriptor('created-date')
    last_modified_date = StringDescriptor('last-modified-date')
    expiry_date = StringDescriptor('expiry-date')
    created_by = EntityDescriptor('created-by', Researcher)
    last_modified_by = EntityDescriptor('last-modified-by', Researcher)
    status = StringDescriptor('status')
    usage_count = IntegerDescriptor('usage-count')
Beispiel #3
0
class Container(Entity):
    "Container for analyte artifacts."

    _URI = 'containers'
    _PREFIX = 'con'

    name = StringDescriptor('name')
    type = EntityDescriptor('type', Containertype)
    occupied_wells = IntegerDescriptor('occupied-wells')
    placements = PlacementDictionaryDescriptor('placement')
    udf = UdfDictionaryDescriptor()
    udt = UdtDictionaryDescriptor()
    state = StringDescriptor('state')

    def get_placements(self):
        """Get the dictionary of locations and artifacts
        using the more efficient batch call."""
        result = self.placements.copy()
        self.lims.get_batch(list(result.values()))
        return result
class ProcessTypeProcessOutput(object):

    instance = None
    name = None
    root = None
    tag = ''

    artifact_type = StringDescriptor('artifact-type')
    display_name = StringDescriptor('display-name')
    output_generation_type = StringDescriptor('output-generation-type')
    variability_type = StringDescriptor('variability-type')
    number_of_outputs = IntegerDescriptor('number-of-outputs')
    output_name = StringDescriptor('output-name')

    def __init__(self, pt_instance, node):
        self.instance = pt_instance
        self.root = node

    def get(self):
        pass