Skip to content
Snippets Groups Projects

new laura folder

Merged Laura Rævsbæk Birch requested to merge au620747-main-patch-86964 into main
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 24
0
import json
from collections import OrderedDict
def create_participants_json(path):
data = OrderedDict()
# data["psg_files"] = {
# "Description": "number of psg-files per subject",
# "Levels": {
# "0": "zero files",
# "1": "one file",
# "2": "two files",
# }
# }
data["gender"] = {
"Description": "gender of participant",
"Gender": {
"m": "male",
"f": "female",
}
}
with open(path, 'w') as outfile:
json.dump(data, outfile, indent=4)
\ No newline at end of file
Loading