dgbowl_schemas.yadg.dataschema_4_0 package
- class dgbowl_schemas.yadg.dataschema_4_0.DataSchema(*, metadata: Metadata, steps: Sequence[Dummy | BasicCSV | MeasCSV | FlowData | ElectroChem | ChromTrace | MassTrace | QFTrace | XPSTrace])
Bases:
BaseModel
- steps: Sequence[Dummy | BasicCSV | MeasCSV | FlowData | ElectroChem | ChromTrace | MassTrace | QFTrace | XPSTrace]
- update()
Submodules
dgbowl_schemas.yadg.dataschema_4_0.externaldate module
- class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDateFile(*, file: Content)
Bases:
BaseModel
- class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDateFilename(*, filename: Content)
Bases:
BaseModel
- class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDateISOString(*, isostring: str)
Bases:
BaseModel
- isostring: str
- class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDateUTSOffset(*, utsoffset: float)
Bases:
BaseModel
- utsoffset: float
- class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDate(*, using: ExternalDateFile | ExternalDateFilename | ExternalDateISOString | ExternalDateUTSOffset, mode: Literal['add', 'replace'] = 'add')
Bases:
BaseModel
- mode: Literal['add', 'replace']
dgbowl_schemas.yadg.dataschema_4_0.input module
- class dgbowl_schemas.yadg.dataschema_4_0.input.Input(*, files: Sequence[str] | None = None, folders: Sequence[str] | None = None, prefix: str | None = None, suffix: str | None = None, contains: str | None = None, exclude: str | None = None, encoding: str | None = 'UTF-8')
Bases:
BaseModel
- files: Sequence[str] | None
- folders: Sequence[str] | None
- prefix: str | None
- suffix: str | None
- contains: str | None
- exclude: str | None
- encoding: str | None
- classmethod files_or_folders(values)
- paths() List[str]
dgbowl_schemas.yadg.dataschema_4_0.metadata module
dgbowl_schemas.yadg.dataschema_4_0.parameters module
dgbowl_schemas.yadg.dataschema_4_0.step module
- class dgbowl_schemas.yadg.dataschema_4_0.step.Dummy(*, parser: Literal['dummy'], input: Input, parameters: Params | None = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(**extra_data: Any)
Bases:
BaseModel
- parser: Literal['dummy']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.BasicCSV(*, parser: Literal['basiccsv'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, sep: str = ',', sigma: Mapping[str, Tol] | None = None, calfile: str | None = None, timestamp: Timestamp | TimeDate | UTS | None = None, convert: Any | None = None, units: Mapping[str, str] | None = None)
Bases:
BaseModel
- sep: str
- calfile: str | None
- convert: Any | None
- units: Mapping[str, str] | None
- parser: Literal['basiccsv']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.MeasCSV(*, parser: Literal['meascsv'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, timestamp: Timestamp | TimeDate | UTS = Timestamp(timestamp=TimestampSpec(index=0, format='%Y-%m-%d-%H-%M-%S')), calfile: str | None = None, convert: Any | None = None)
Bases:
BaseModel
- calfile: str | None
- convert: Any | None
- parser: Literal['meascsv']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.FlowData(*, parser: Literal['flowdata'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, filetype: Literal['drycal', 'drycal.csv', 'drycal.rtf', 'drycal.txt'] = 'drycal', convert: Any | None = None, calfile: str | None = None)
Bases:
BaseModel
- filetype: Literal['drycal', 'drycal.csv', 'drycal.rtf', 'drycal.txt']
- convert: Any | None
- calfile: str | None
- parser: Literal['flowdata']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.ElectroChem(*, parser: Literal['electrochem'], input: ECInput, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, filetype: Literal['eclab.mpt', 'eclab.mpr'] = 'eclab.mpr')
Bases:
BaseModel
- filetype: Literal['eclab.mpt', 'eclab.mpr']
- class ECInput(*, files: Sequence[str] | None = None, folders: Sequence[str] | None = None, prefix: str | None = None, suffix: str | None = None, contains: str | None = None, exclude: str | None = None, encoding: str = 'windows-1252')
Bases:
Input
- encoding: str
- parser: Literal['electrochem']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.ChromTrace(*, parser: Literal['chromtrace'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, tracetype: Literal['ezchrom.asc', 'fusion.json', 'fusion.zip', 'agilent.ch', 'agilent.dx', 'agilent.csv'] = 'ezchrom.asc', calfile: str | None = None, species: Any | None = None, detectors: Any | None = None)
Bases:
BaseModel
- filetype: Literal['ezchrom.asc', 'fusion.json', 'fusion.zip', 'agilent.ch', 'agilent.dx', 'agilent.csv']
- calfile: str | None
- species: Any | None
- detectors: Any | None
- parser: Literal['chromtrace']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.MassTrace(*, parser: Literal['masstrace'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, tracetype: Literal['quadstar.sac'] = 'quadstar.sac')
Bases:
BaseModel
- filetype: Literal['quadstar.sac']
- parser: Literal['masstrace']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.QFTrace(*, parser: Literal['qftrace'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, tracetype: Literal['labview.csv'] = 'labview.csv', method: Literal['naive', 'lorentz', 'kajfez'] = 'kajfez', height: float = 1.0, distance: float = 5000.0, cutoff: float = 0.4, threshold: float = 1e-06)
Bases:
BaseModel
- filetype: Literal['labview.csv']
- method: Literal['naive', 'lorentz', 'kajfez']
- height: float
- distance: float
- cutoff: float
- threshold: float
- parser: Literal['qftrace']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.step.XPSTrace(*, parser: Literal['xpstrace'], input: Input, parameters: Params = None, tag: str | None = None, externaldate: ExternalDate | None = None, export: str | None = None)
Bases:
BaseModel
- class Params(*, tracetype: Literal['phi.spe'] = 'phi.spe')
Bases:
BaseModel
- filetype: Literal['phi.spe']
- parser: Literal['xpstrace']
- tag: str | None
- externaldate: ExternalDate | None
- export: str | None
dgbowl_schemas.yadg.dataschema_4_0.timestamp module
- class dgbowl_schemas.yadg.dataschema_4_0.timestamp.TimestampSpec(*, index: int | None = None, format: str | None = None)
Bases:
BaseModel
- index: int | None
- format: str | None
- class dgbowl_schemas.yadg.dataschema_4_0.timestamp.Timestamp(*, timestamp: TimestampSpec)
Bases:
BaseModel
- timestamp: TimestampSpec
- class dgbowl_schemas.yadg.dataschema_4_0.timestamp.UTS(*, uts: TimestampSpec)
Bases:
BaseModel
- uts: TimestampSpec
- class dgbowl_schemas.yadg.dataschema_4_0.timestamp.TimeDate(*, date: TimestampSpec | None = None, time: TimestampSpec | None = None)
Bases:
BaseModel
- date: TimestampSpec | None
- time: TimestampSpec | None