computationalprivacy / bandicoot

an open-source python toolbox to analyze mobile phone metadata
MIT License
237 stars 61 forks source link

Issue with loading gps data, loader expects a not empty 'direction' #8

Open yellowBirdy opened 8 years ago

yellowBirdy commented 8 years ago

I think the issue lies in io.py in the schema definition in line 230

'direction': (not_callandtext and r.direction is None) or r.direction in ['in', 'out'],

should be

'direction': (not_callandtext and r.direction in [None, '']) or r.direction in ['in', 'out'],
yellowBirdy commented 8 years ago

I've created a pull request #9 with my idea of a fix