This repository contains reference data to validate thermal comfort functions. It is currently being used to validate the following tools:
We realsed this cource code under a MIT Licence hence you can freely used this data to validate your functions.
When you update a JSON file, please run check_json_files.py to check the format of the file. This script ensures that the JSON structure adheres to the expected schema. To run the script, follow these steps:
-
Open a terminal and navigate to the root directory of the repository.
-
Run the following command:
python check_json_files.py [fill_miss_output]
-
The script will check all JSON files in the directory and report any format issues.
fill_miss_outputis an optional parameter. When set toTrue, the script will try to use the variables ininputsto call the corresponding method in the pythermalcomfort package by parsing the JSON file name(Take the string between ts_ and .json). It will use the return to fill the missing key inoutputs, which refers totolerance.- By default,
fill_miss_outputisFalse, meaning the script will only check the file format without modifying the files.
-
To only check the JSON file format without filling missing outputs:
python check_json_files.py
-
To check and automatically fill missing outputs:
python check_json_files.py True
Data are stored as a JSON file. The JSON schema is describe below:
information:
summary: string, descirbe functions of the file.
version: string, the version of the file.
license: "MIT"
tolerance: {}, contains the tolerance value for Specified keys in outputs. The tolerance keys must show in outputs too.
data: [], array
source: str, indicate the source of test data, optional
inputs: {}, contains the model inputs
outputs: {}, contains the validation data