GeoDaCenter / spatial_access

https://spatial.uchicago.edu
37 stars 11 forks source link

importing csv matrix into metrics #43

Closed ifarah closed 5 years ago

ifarah commented 5 years ago

Now it's only reading H5. Now user cannot compute metrics if she has a csv matrix.

ifarah commented 5 years ago

Issues with labels when reading in matrix in csv format.

access = AccessModel(network_type='walk', sources_filename='ORIG/ct.csv', source_column_names=None, destinations_filename='DEST/marynia_health.csv', dest_column_names=None, transit_matrix_filename='matrices/ct_health.csv', decay_function='logit')

access.calculate(upper_threshold=1800,category_weight_dict=dict, normalize=False)

Screen Shot 2019-05-14 at 3 36 27 PM
lmnoel commented 5 years ago

@ifarah I'm unable to replicate the issue with a different dataset. Can you send ORIG/ct.csv

lmnoel commented 5 years ago

Solved, patch deploying now. The issue was that the indices of the destination dataset in the transit matrix csv were mistakenly treated as strings when they were actually integers. I was unable to replicate because I was using a dataset with string destination indices.