Skip to content

fix process_csv#400

Merged
ptpt merged 2 commits intomasterfrom
fix-process-csv
Jun 2, 2021
Merged

fix process_csv#400
ptpt merged 2 commits intomasterfrom
fix-process-csv

Conversation

@ptpt
Copy link
Member

@ptpt ptpt commented Jun 2, 2021

Fixes #399

@ptpt ptpt merged commit eaed2e0 into master Jun 2, 2021
@ptpt ptpt deleted the fix-process-csv branch June 2, 2021 11:01
@naho2196
Copy link

naho2196 commented Jun 13, 2021

I have an issue using column_indexes = [col - 1 for col in column_indexes] instead of column_indexes = map(lambda x: x - 1 if x else None, column_indexes). The error is the following:

File "c:\python39\lib\site-packages\mapillary_tools\process_csv.py", line 270, in
column_indexes = [col - 1 for col in column_indexes]
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

Probably somebody know the reason and how to fix it? thanks

@ptpt
Copy link
Member Author

ptpt commented Jun 14, 2021

Sorry @naho2196 I didn't noticed the case that the column indexes could be None. It's fixed in #406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Process_csv.py issue since Python 3 conversion

3 participants