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

Upload New File

parent 2910ec42
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_scoringFile_json(path):
data = OrderedDict()
data["staging"] = {
"Description": "Manual sleep scoring",
"Levels": {
"1": "Wake",
"2": "REM",
"3": "N1",
"4": "N2",
"5": "N3",
"6": "Movement",
"7": "Artefact",
"8": "Unscored"
}
}
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