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
+ 21
0
Compare changes
  • Side-by-side
  • Inline
+ 21
0
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
Loading