You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem?
When we uncompress a file using the command xz -d file.xz the uncompressed file name will be file. It'd be good to have the files named xxx.csv.xz instead of xxx.xz so some software (which depends on file extension) will work properly.
How can this be addressed?
Replace lines like this (see serenata_toolbox/chamber_of_deputies/dataset.py):
.replace('.csv', '.xz') \
with:
.replace('.csv', '.csv.xz') \
This also happens on serenata_toolbox/federal_senate/dataset.py and maybe in other places.
Will also need to change all places where these files are read.
Just a quick note to anyone interested in this issue: this change will potentially broke a lot of stuff, for instance every notebook on serenata-de-amor loading .xz files, every script on serenata-toolbox, jarbas, rosie and whistleblower opening .xz files…
I do believe that adding the proper extension is helpful and we should do it any of these days. But this must be coordinated along multiple repos. Any ideas @anaschwendler and @Irio?
As suggested by @turicas here:
The text was updated successfully, but these errors were encountered: