Skip to content
Snippets Groups Projects
Commit 5a3ddb28 authored by Laura Rævsbæk Birch's avatar Laura Rævsbæk Birch
Browse files

Upload New File

parent 9b3d9f20
No related branches found
No related tags found
1 merge request!1new laura folder
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment