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

Failed to run 1_extract_hirid.py #6

Closed
mostafaalishahi opened this issue Nov 8, 2023 · 2 comments
Closed

Failed to run 1_extract_hirid.py #6

mostafaalishahi opened this issue Nov 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mostafaalishahi
Copy link

Many thanks for the fantastic job you have done.
I have failed to run the code for HiRID extraction, so I would appreciate it if you could provide any insights that can help me move forward.
I believe this specific line is leading to an error

timeseries = pd.read_csv(self.imputedstage_path,
                                 usecols=['imputed_stage/', 'reldatetime'])

As far as we have no imputed_stage/ as a column in our imputedstage_path='imputed_stage/imputed_stage_csv.tar.gz' but we have imputed_stage/ as a folder in imputedstage_path.

here is the error

ValueError: Multiple files found in TAR archive. Only one file per TAR archive: ['imputed_stage', 'imputed_stage/csv', 'imputed_stage/csv/part-82.csv', 'imputed_stage/csv/part-96.csv', .....

@USM-CHU-FGuyon USM-CHU-FGuyon added the bug Something isn't working label Nov 8, 2023
@USM-CHU-FGuyon
Copy link
Owner

Thank you for your interest in our work !
This is due to the latest commit. This line did run in Pandas 1.4, but behaviour of read_csv changed in Pandas >1.5. I will fix this soon and keep you updated.

@USM-CHU-FGuyon
Copy link
Owner

The bug should be fixed in release v0.1.1 that was just uploaded. Please tell me if you find new difficulties running the codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants