-
Notifications
You must be signed in to change notification settings - Fork 27
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
PyActigraphy_Error with GENEActive bin file KeyError: accImputed #156
Comments
Hello @Tony-555 First of all, thanks for using pyActigraphy. Could you let me know:
Cheers, Greg |
Hi @ghammad, Thank you very much for your reply! 1)The package version I use: 2) The full error message:
**3) Link to a test file. Data from one participant during 14 days |
Hello @Tony-555 Thanks for the info and the file. From your error message, do I understand correctly that the issue is not related to pyActigraphy? It seems that you have an issue with processing your GeneActiv file with the Nonetheless, I converted your .bin file using the accelerometer package (v6.2.2) with the default settings and, as you can see below, it was successful: 2024-09-10 17:11:06 === Summarizing ===
60052 rows with NaN or Inf values, out of 102104
2024-09-10 17:11:31 === Short summary ===
{
"file-name": "P011ET_56416_2023-11-28 12-48-58.bin",
"file-startTime": "2023-09-17 22:15:00.500000+0100 [Europe/London]",
"file-endTime": "2023-10-23 09:06:30.500000+0100 [Europe/London]",
"acc-overall-avg": 24.59826495031706,
"wearTime-overall(days)": 14.60138888888889,
"nonWearTime-overall(days)": 20.85138888888889,
"quality-goodWearTime": 1
}
Full summary written to: /home/ghammad/Downloads/P011ET_56416_2023-11-28 12-48-58-summary.json I then read the output file Hard to understand what went wrong in the pre-processing. I can only speculate that, during the processing with the
As mentioned earlier, the dev of the Do not hesitate to keep me posted about the outcome of your discussion with the Best regards, Greg |
Hello @Tony-555 I hope you managed to move forward with the data preprocessing. Do not hesitate to share your findings, questions or thoughts with us. Cheers, Greg |
Hello everyone,
I am using
pyActigraphy
to process actigraphy data from GENEActiv devices. I need to obtain M10 and L5C, but I’ve encountered the following error and have been struggling to solve it for months.Here’s a snippet of the command I am using:
accProcess "path/to/file" --timeZone "America/Montevideo" --startTime "2023-09-17T21:15" --sampleRate 10 --resampleMethod "linear" --psd True --fourierFrequency True --activityClassification True --m10l5 True --mgCpLPA 100 --mgCpMPA 120 --mgCpVPA 500 --verbose True --deleteIntermediateFiles False
When I attempt to run the analysis, I encounter a
KeyError: 'accImputed'
, which indicates that the column'accImputed'
does not exist. I’ve checked the CSV file, and indeed, the column is missing.Has anyone experienced a similar issue? What additional steps should I take to ensure that the
'accImputed'
column is correctly generated in the intermediate file? Could this be a problem with the imputation settings, or is there something else I should be checking?Thank you in advance for any guidance you can offer!
The text was updated successfully, but these errors were encountered: