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

Variables Not Used in preprocess_mimic.py #12

Open
cswpy opened this issue Sep 21, 2021 · 0 comments
Open

Variables Not Used in preprocess_mimic.py #12

cswpy opened this issue Sep 21, 2021 · 0 comments

Comments

@cswpy
Copy link

cswpy commented Sep 21, 2021

In the process_patient(infile) function of preprocess_mimic.py file, the below code segment declared two dictionary for storing patient_ids and relevant encounter information

    for patient_id, time_enc_tuples in patient_dict.items():
        patient_dict_sorted[patient_id] = sorted(time_enc_tuples)

The variables patient_dict and patient_dict_sorted are neither used later inside the scope of the function nor are they returned to the caller of the function. I think this part of the code could be struck? If not, could you please explain this particular code segment? Thanks.

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