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

Missing files when downloading study files #46

Open
niyonx opened this issue Jan 17, 2023 · 2 comments
Open

Missing files when downloading study files #46

niyonx opened this issue Jan 17, 2023 · 2 comments

Comments

@niyonx
Copy link

niyonx commented Jan 17, 2023

I'm getting missing files when running

required_files = [
    "Demographics.csv",
    "Age_at_visit.csv",
    "MDS_UPDRS_Part_III.csv",
    "Socio-Economics.csv",
    "LEDD_Concomitant_Medication_Log.csv",
    "Montreal_Cognitive_Assessment__MoCA_.csv",
    "PD_Diagnosis_History.csv",
    "Cognitive_Categorization.csv",
    "Participant_Status.csv",
    "Primary_Clinical_Diagnosis.csv",
    "Geriatric_Depression_Scale__Short_Version_.csv"
]

utils.get_study_files(required_files, default=downloader)

The output:

("Downloading files: ['Age_at_visit.csv', 'MDS_UPDRS_Part_III.csv', "
 "'Socio-Economics.csv', 'LEDD_Concomitant_Medication_Log.csv', "
 "'Montreal_Cognitive_Assessment__MoCA_.csv', 'PD_Diagnosis_History.csv', "
 "'Participant_Status.csv', 'Geriatric_Depression_Scale__Short_Version_.csv']")
LivingPark-utils|DEBUG|ppmi_downloader.py:106 in __init__()
                       self.tempdir: <TemporaryDirectory '/tmp/tmpx6fd5bz1'>
LivingPark-utils|DEBUG|ppmi_downloader.py:117 in __init__()
                       self.config_file: '.ppmi_config'
                       config_file: '.ppmi_config'
 25%|██████████▊                                | 2/8 [00:00<00:00, 2724.46it/s]
("Missing files: ['Age_at_visit.csv', 'MDS_UPDRS_Part_III.csv', "
 "'Socio-Economics.csv', 'LEDD_Concomitant_Medication_Log.csv', "
 "'Montreal_Cognitive_Assessment__MoCA_.csv', 'PD_Diagnosis_History.csv', "
 "'Participant_Status.csv', 'Geriatric_Depression_Scale__Short_Version_.csv']")

@mathdugre
Copy link
Collaborator

Hi @niyonx , there's currently downloading some files due to miss match between the expected and actual filename.
For example, the downloader expects SocioEconomics.csv, while the actual file name is Socio-Economics.csv.

@yohanchatelain was there some advancement on LivingPark-MRI/ppmi-scraper#43 to resolve this issue?

@niyonx
Copy link
Author

niyonx commented Jan 24, 2023

@mathdugre yes indeed.

It's weird last time Demographics.csv was downloaded, then I run the notebook on MacOS and it's now missing as well.

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

2 participants