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

metadata: Metadata
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 Content(*, path: str, type: str, match: str | None = None)

Bases: BaseModel

path: str
type: str
match: str | None
file: Content
class dgbowl_schemas.yadg.dataschema_4_0.externaldate.ExternalDateFilename(*, filename: Content)

Bases: BaseModel

class Content(*, format: str, len: int)

Bases: BaseModel

format: str
len: int
filename: Content
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

using: ExternalDateFile | ExternalDateFilename | ExternalDateISOString | ExternalDateUTSOffset
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

class dgbowl_schemas.yadg.dataschema_4_0.metadata.Metadata(*, schema_version: Literal['4.0', '4.0.0', '4.0.1'], provenance: str, timezone: str = 'localtime')

Bases: BaseModel

version: Literal['4.0', '4.0.0', '4.0.1']
provenance: str
timezone: str

dgbowl_schemas.yadg.dataschema_4_0.parameters module

class dgbowl_schemas.yadg.dataschema_4_0.parameters.Tol(*, atol: float | None = None, rtol: float | None = None)

Bases: BaseModel

atol: float | None
rtol: float | None

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']
input: Input
parameters: Params | None
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
sigma: Mapping[str, Tol] | None
calfile: str | None
timestamp: Timestamp | TimeDate | UTS | None
convert: Any | None
units: Mapping[str, str] | None
parser: Literal['basiccsv']
input: Input
parameters: Params
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

timestamp: Timestamp | TimeDate | UTS
calfile: str | None
convert: Any | None
parser: Literal['meascsv']
input: Input
parameters: Params
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']
input: Input
parameters: Params
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']
input: ECInput
parameters: Params
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']
input: Input
parameters: Params
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']
input: Input
parameters: Params
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']
input: Input
parameters: Params
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']
input: Input
parameters: Params
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