Exemple #1
0
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              material: Optional[TaurusMaterialRun] = None,
              process: Optional[TaurusProcessRun] = None,
              mass_fraction: Optional[ContinuousValue] = None,
              volume_fraction: Optional[ContinuousValue] = None,
              number_fraction: Optional[ContinuousValue] = None,
              absolute_quantity: Optional[ContinuousValue] = None,
              labels: Optional[List[str]] = None,
              spec: Optional[TaurusIngredientSpec] = None,
              file_links: Optional[List[FileLink]] = None):
     DataConcepts.__init__(self, TaurusIngredientRun.typ)
     TaurusIngredientRun.__init__(self,
                                  uids=set_default_uid(uids),
                                  tags=tags,
                                  notes=notes,
                                  material=material,
                                  process=process,
                                  mass_fraction=mass_fraction,
                                  volume_fraction=volume_fraction,
                                  number_fraction=number_fraction,
                                  absolute_quantity=absolute_quantity,
                                  labels=labels,
                                  name=name,
                                  spec=spec,
                                  file_links=file_links)
Exemple #2
0
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              conditions: Optional[List[Condition]] = None,
              properties: Optional[List[Property]] = None,
              parameters: Optional[List[Parameter]] = None,
              spec: Optional[TaurusMeasurementSpec] = None,
              material: Optional[TaurusMaterialRun] = None,
              file_links: Optional[List[FileLink]] = None,
              source: Optional[PerformedSource] = None):
     DataConcepts.__init__(self, TaurusMeasurementRun.typ)
     TaurusMeasurementRun.__init__(self,
                                   name=name,
                                   uids=set_default_uid(uids),
                                   material=material,
                                   tags=tags,
                                   conditions=conditions,
                                   properties=properties,
                                   parameters=parameters,
                                   spec=spec,
                                   file_links=file_links,
                                   notes=notes,
                                   source=source)
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              conditions: Optional[Sequence[
                  Union[ConditionTemplate, LinkByUID,
                        Sequence[Union[ConditionTemplate, LinkByUID,
                                       BaseBounds]]]]] = None,
              parameters: Optional[Sequence[
                  Union[ParameterTemplate, LinkByUID,
                        Sequence[Union[ParameterTemplate, LinkByUID,
                                       BaseBounds]]]]] = None,
              allowed_labels: Optional[List[str]] = None,
              allowed_names: Optional[List[str]] = None,
              description: Optional[str] = None,
              tags: Optional[List[str]] = None):
     DataConcepts.__init__(self, TaurusProcessTemplate.typ)
     TaurusProcessTemplate.__init__(self,
                                    name=name,
                                    uids=set_default_uid(uids),
                                    conditions=conditions,
                                    parameters=parameters,
                                    tags=tags,
                                    description=description,
                                    allowed_labels=allowed_labels,
                                    allowed_names=allowed_names)
Exemple #4
0
 def __init__(self,
              name: str,
              bounds: BaseBounds,
              uids: Optional[Dict[str, str]] = None,
              description: Optional[str] = None,
              tags: Optional[List[str]] = None):
     DataConcepts.__init__(self, TaurusParameterTemplate.typ)
     TaurusParameterTemplate.__init__(self, name=name, bounds=bounds, tags=tags,
                                      uids=set_default_uid(uids), description=description)
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              properties: Optional[Sequence[
                  Union[PropertyTemplate, LinkByUID,
                        Sequence[Union[PropertyTemplate, LinkByUID,
                                       BaseBounds]]]]] = None,
              description: Optional[str] = None,
              tags: Optional[List[str]] = None):
     # properties is a list, each element of which is a PropertyTemplate OR is a list with
     # 2 entries: [PropertyTemplate, BaseBounds]. Python typing is not expressive enough, so
     # the typing above is more general.
     DataConcepts.__init__(self, TaurusMaterialTemplate.typ)
     TaurusMaterialTemplate.__init__(self,
                                     name=name,
                                     properties=properties,
                                     uids=set_default_uid(uids),
                                     tags=tags,
                                     description=description)
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              process: Optional[TaurusProcessRun] = None,
              sample_type: Optional[str] = "unknown",
              spec: Optional[TaurusMaterialSpec] = None,
              file_links: Optional[List[FileLink]] = None):
     DataConcepts.__init__(self, TaurusMaterialRun.typ)
     TaurusMaterialRun.__init__(self,
                                name=name,
                                uids=set_default_uid(uids),
                                tags=tags,
                                process=process,
                                sample_type=sample_type,
                                spec=spec,
                                file_links=file_links,
                                notes=notes)
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              process: Optional[TaurusProcessSpec] = None,
              properties: Optional[List[PropertyAndConditions]] = None,
              template: Optional[TaurusMaterialTemplate] = None,
              file_links: Optional[List[FileLink]] = None):
     DataConcepts.__init__(self, TaurusMaterialSpec.typ)
     TaurusMaterialSpec.__init__(self,
                                 name=name,
                                 uids=set_default_uid(uids),
                                 tags=tags,
                                 process=process,
                                 properties=properties,
                                 template=template,
                                 file_links=file_links,
                                 notes=notes)
Exemple #8
0
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              conditions: Optional[List[Condition]] = None,
              parameters: Optional[List[Parameter]] = None,
              template: Optional[TaurusMeasurementTemplate] = None,
              file_links: Optional[List[FileLink]] = None):
     DataConcepts.__init__(self, TaurusMeasurementSpec.typ)
     TaurusMeasurementSpec.__init__(self,
                                    name=name,
                                    uids=set_default_uid(uids),
                                    tags=tags,
                                    conditions=conditions,
                                    parameters=parameters,
                                    template=template,
                                    file_links=file_links,
                                    notes=notes)
 def __init__(self,
              name: str,
              uids: Optional[Dict[str, str]] = None,
              tags: Optional[List[str]] = None,
              notes: Optional[str] = None,
              conditions: Optional[List[Condition]] = None,
              parameters: Optional[List[Parameter]] = None,
              spec: Optional[TaurusProcessSpec] = None,
              file_links: Optional[List[FileLink]] = None,
              source: Optional[PerformedSource] = None):
     DataConcepts.__init__(self, TaurusProcessRun.typ)
     TaurusProcessRun.__init__(self,
                               name=name,
                               uids=set_default_uid(uids),
                               tags=tags,
                               conditions=conditions,
                               parameters=parameters,
                               spec=spec,
                               file_links=file_links,
                               notes=notes,
                               source=source)