-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility Function #32
base: master
Are you sure you want to change the base?
Conversation
spint/tests/test_accessibility.py
Outdated
flow = flow.loc[:,['origin_ID', 'destination_ID','distances', 'volume_in_unipartite','dest_masses','results_all=False']] | ||
flow['acc_uni'] = function(flow_df = flow, all_destinations=False) | ||
|
||
self.assertEqual(flow['results_all=False'].all(), flow['acc_uni'].all()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this does what you think it does! check what flow['results_all=False']
looks like!
You may want to use something like numpy.testing.assert_allclose
or numpy.testing.assert_array_equal
, which are designed to compare numpy arrays.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I addressed this correctly. Let me know if not :).
Looks good @lenkahas 🎉 I've got some comments/suggestions for you! |
I have recently reviewed the function and needed to alter the calculation for the bipartite graph. |
I have accidentally closed this. Could this be reopened? |
Super, thanks @lenkahas! I think there are still a few minor things above that need to be done before merging. Are you OK if I do these myself? |
This pull request includes all the work for the GSoC project of including competing destination estimation into SpInt module.
For more information please visit my blog https://lenkahas.com/post/gsoc.html.