Skip to content

key error when collating results from shorter monitoring periods #157

Description

@smallsr

A key error consistently occurs when using accUtils.collateJSONfilesToSingleCSV when collating summary files from shorter monitoring periods (e.g. 24 hours or less). Interestingly, a workaround is to place a single summary json from a longer monitoring time into the folder with the shorter summary json files. This extra file must have been processed with the same activity model as the current files of interest. When this extra summary file is in place, the script runs without error.
The key error is below:

accUtils.collateJSONfilesToSingleCSV("full_clemson_results/summary/", "xyz.csv")
Traceback (most recent call last):
File "", line 1, in
File "/mnt/c/Users/srsma/mar2021_biobankAccelerometerAnalysis/biobankAccelerometerAnalysis/accelerometer/accUtils.py", line 241, in collateJSONfilesToSingleCSV
dAcc = df[list(refColumnItem.keys())] #maintain intended column ordering
AttributeError: 'NoneType' object has no attribute 'keys'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions