Closed Twetler closed 4 months ago
It seems that now Datasus is splitting the larger files in two for the bigger states: half of the data goes into BIMG2305_1
and the other half into BIMG2305_2
in your example. @luabida can you add a rule to handle this?
How to reproduce my error
Using version 0.10.4
from pysus.online_data.SIA import download
download('BA', 2024, 4, groups = ["BI"])
Which refers to:
After receiving lots of values like this ['BIMG', ''] which is easily unpacked, I got a ['BIMG2305_1'] which can't be unpacked as a tuple.
My shortfix was to extract the List's first item [0] however I don't know if this solution can be used for all files. It also raised a doubt if this logic is reproduced in the other libraries.