Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with RemLogic #2

Open
galaplexus opened this issue Apr 26, 2023 · 0 comments
Open

Compatibility with RemLogic #2

galaplexus opened this issue Apr 26, 2023 · 0 comments

Comments

@galaplexus
Copy link

Hello,

I'm trying to run your program with edf and txt file extracted from RemLogic. We are working for a Swiss University Hospital.

I'm getting the following error:

### 25.04.2023 10:44:17 ###   edf: C:\Users\emp8124242\dev\RBDtector\Data\Test_AM_10_20_230216_(1).edf
### 25.04.2023 10:48:04 ###   Unexpected error in file C:/Users/emp8124242/dev/RBDtector/Data:
 'sleep_profile'
, ### 25.04.2023 10:48:04 ###   Traceback (most recent call last):
  File "C:\Users\emp8124242\dev\RBDtector\RBDtector\app_logic\PSG_controller.py", line 110, in single_psg_run
    PSGController.run_rbd_detection(input_path, output_path)
  File "C:\Users\emp8124242\dev\RBDtector\RBDtector\app_logic\PSG_controller.py", line 26, in run_rbd_detection
    raw_data, annotation_data = ir.read_input(directory_name=input_path,
  File "C:\Users\emp8124242\dev\RBDtector\RBDtector\input_handling\input_reader.py", line 48, in read_input
    annotation_data: AnnotationData = __read_txt_files(filenames, read_baseline, read_human_rating)
  File "C:\Users\emp8124242\dev\RBDtector\RBDtector\input_handling\input_reader.py", line 158, in __read_txt_files
    sleep_profile = __read_sleep_profile(filenames['sleep_profile'])
KeyError: 'sleep_profile'

The extract of RemLogic gives us a single txt file, with all the data required to run your analysis. I believe we just need to convert into a similar format as yours. I don't mind writing a script to parse the txt file, but I would like to know what is the format of the files Sleep profile, Flow Events, Classification Arousals, Start-Baseline, and Generic.
The best would be if you would push sample files with synthetic data.

Bests
Guillaume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant