Add support for YAML files, when PyYAML is installed. If PyYAML is not installed, any YAML file_data functions error out. Only files ending with .yml or .yaml are considered to be YAML files. All other files are loaded as JSON files.
20 lines
257 B
YAML
20 lines
257 B
YAML
positive_integer_range:
|
|
start: 0
|
|
end: 2
|
|
value: 1
|
|
|
|
negative_integer_range:
|
|
start: -2
|
|
end: 0
|
|
value: -1
|
|
|
|
positive_real_range:
|
|
start: 0.0
|
|
end: 1.0
|
|
value: 0.5
|
|
|
|
negative_real_range:
|
|
start: -1.0
|
|
end: 0.0
|
|
value: -0.5
|