I only need the Brussels part of best-full-latest.zip. So, I only extract the Brussels' files from the zip (avoids a lot of waste of disk space)...
So, I'd expect this to work as per targetting functionality as per --help:
... --region {belgium,brussels,flanders,wallonia}
However (reproduceable):
...>python converter.py --verbose --region brussels . bru.csv
2019-11-01 18:45:28,477 - main : ERROR - File for data of type ['FlandersAddress', 'FlandersMunicipality', 'FlandersPostalinfo', 'FlandersStreetname', 'WalloniaAddress', 'WalloniaMunicipality', 'Wallon
iaPartOfMunicipality', 'WalloniaPostalinfo', 'WalloniaStreetname'] was not found in the input folder
To my understanding, the check in converter.py line 56 keys = FILE_KEYS is needlessly strict: it Must only check required files. This seems a bug to me.
Bypass for me: in constants.py, removed lines so that FILE_KEYS = [
'BrusselsAddress',
'BrusselsMunicipality',
'BrusselsPostalinfo',
'BrusselsStreetname'
]
I only need the Brussels part of best-full-latest.zip. So, I only extract the Brussels' files from the zip (avoids a lot of waste of disk space)...
So, I'd expect this to work as per targetting functionality as per --help:
... --region {belgium,brussels,flanders,wallonia}
However (reproduceable):
...>python converter.py --verbose --region brussels . bru.csv
2019-11-01 18:45:28,477 - main : ERROR - File for data of type ['FlandersAddress', 'FlandersMunicipality', 'FlandersPostalinfo', 'FlandersStreetname', 'WalloniaAddress', 'WalloniaMunicipality', 'Wallon
iaPartOfMunicipality', 'WalloniaPostalinfo', 'WalloniaStreetname'] was not found in the input folder
To my understanding, the check in converter.py line 56 keys = FILE_KEYS is needlessly strict: it Must only check required files. This seems a bug to me.
Bypass for me: in constants.py, removed lines so that FILE_KEYS = [
'BrusselsAddress',
'BrusselsMunicipality',
'BrusselsPostalinfo',
'BrusselsStreetname'
]