Schema for FIREpyDAQ ConfigΒΆ
Below is the schema used to validate configuration .json
files used to import in the GUI.
type |
object |
||||
properties |
|||||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
|||
|
type |
number |
|||
minimum |
0 |
||||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
|||
|
type |
object |
|||
properties |
|||||
|
type |
object |
|||
patternProperties |
|||||
|
type |
object |
|||
properties |
|||||
|
type |
string |
|||
|
type |
number |
|||
|
type |
number |
|||
|
type |
number |
|||
|
type |
number |
|||
|
type |
number |
|||
|
type |
number |
|||
|
type |
object |
|||
patternProperties |
|||||
|
type |
object |
|||
properties |
|||||
|
type |
string |
|||
|
type |
string |
|||
|
type |
number |
|||
|
type |
string |
|||
|
type |
object |
|||
patternProperties |
|||||
|
type |
object |
|||
properties |
|||||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
The following is the literal schema. Note that Name
, Experiment Name
, Test Name
, Sampling Rate
, Formulae File
, Experiment Type
, Config File
are required parameters.
schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"Name": {
"type": "string"
},
"Experiment Name": {
"type": "string"
},
"Test Name": {
"type": "string"
},
"Sampling Rate": {
"type": "number",
"minimum": 0
},
"Formulae File": {
"type": "string"
},
"Experiment Type": {
"type": "string"
},
"Config File": {
"type": "string"
},
"Devices": {
"type": "object",
"properties": {
"Lasers": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"properties": {
"COMPORT": {
"type": "string"
},
"P": {
"type": "number"
},
"I": {
"type": "number"
},
"D": {
"type": "number"
},
"O": {
"type": "number"
},
"Laser Rate": {
"type": "number"
},
"Tec Rate": {
"type": "number"
}
},
"required": ["COMPORT", "P", "I", "D", "O", "Laser Rate", "Tec Rate"]
}
}
},
"MFCs": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"properties": {
"COMPORT": {
"type": "string"
},
"Gas": {
"type": "string"
},
"Rate": {
"type": "number"
},
"Type": {
"type": "string"
}
},
"required": ["COMPORT", "Gas", "Rate", "Type"]
}
}
},
"MFMs": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"properties": {
"COMPORT": {
"type": "string"
},
"Gas": {
"type": "string"
},
"Type": {
"type": "string"
}
},
"required": ["COMPORT", "Gas", "Type"]
}
}
}
}
}
},
"required": ["Name", "Experiment Name", "Test Name", "Sampling Rate", "Formulae File", "Experiment Type", "Config File"]
}
"""Schema for FIREpyDAQ configuration file
"""