Skip to content
Snippets Groups Projects

F dict heuristic

Merged Florian Spreckelsen requested to merge f-dict-heuristic into dev
Compare and Show latest version
12 files
+ 387
245
Compare changes
  • Side-by-side
  • Inline
Files
12
cfood:
type: object
properties:
Converters:
description: Defintiion of custom converters
type: object
additionalProperties:
type: object
properties:
converter:
type: string
package:
type: string
required:
- converter
- package
macros:
description: Macro definitions
type: array
Transformers:
description: Variable transformer definition
type: object
additionalProperties:
type: object
properties:
function:
type: string
package:
type: string
required:
- package
- function
additionalProperties:
$ref:
"#/$defs/converter"
$defs:
parents:
description: Parents for this record are given here as a list of names.
type: array
items:
type: string
converter:
properties:
type:
@@ -38,6 +73,7 @@ cfood:
- H5Dataset
- H5Group
- H5Ndarray
- PropertiesFromDictElement
description: Type of this converter node.
match:
description: typically a regexp which is matched to a structure element name
@@ -48,15 +84,42 @@ cfood:
match_value:
description: a regexp that is matched to the value of a key-value pair
type: string
records:
description: This field is used to define new records or to modify records which have been defined on a higher level.
record_from_dict:
description: Only relevant for PropertiesFromDictElement. Specify the root record which is generated from the contained dictionary.
type: object
required:
- variable_name
properties:
parents:
description: Parents for this record are given here as a list of names.
variable_name:
description: Name of the record by which it can be accessed in the cfood definiton. Can also be the name of an existing record in which case that record will be treated by the PropertiesFromDictConverter.
type: string
properties_blacklist:
description: List of keys to be ignored in the automatic treatment. They will be ignored on all levels of the dictionary.
type: array
items:
type: string
references:
description: List of keys that will be transformed into named reference properties.
type: object
additionalProperties:
type: object
properties:
parents:
$ref:
"#/$defs/parents"
name:
description: Nmae of this record. If none is given, variable_name is used.
type: string
parents:
$ref:
"#/$defs/parents"
records:
description: This field is used to define new records or to modify records which have been defined on a higher level.
type: object
properties:
parents:
$ref:
"#/$defs/parents"
additionalProperties:
oneOf:
- type: object
@@ -78,3 +141,15 @@ cfood:
additionalProperties:
$ref:
"#/$defs/converter"
if:
properties:
type:
const:
"PropertiesFromDictElement"
then:
required:
- type
- record_from_dict
else:
required:
- type
Loading