// extract the .dat file name
if key == "file":
dat_fname = val
dat_path = op.dirname(dat_fname)
dat_fpath = op.join(curr_path, op.basename(dat_fname))
// determine if .dat file exists where it should
error_msg = f"The data path you specified " \
After Change
patient_dict[key] = val
// Comments (turned into mne.Annotations)
elif section == "comments":
comments_dict[key] = comments_dict.get(key, list()) + [val]
num_comments += 1
// get numerical metadata