Skip to content

Accessibility Function - #32

Merged
TaylorOshan merged 16 commits into
pysal:masterfrom
lenkastatham:master
Apr 10, 2025
Merged

TaylorOshan merged 16 commits into
pysal:masterfrom
lenkastatham:master

Conversation

@lenkastatham

@lenkastatham lenkastatham commented Jul 7, 2021

Copy link
Copy Markdown
Contributor

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.

@lenkastatham lenkastatham changed the title Initiall Accessibility Function Accessibility Function Jul 25, 2021
Comment thread spint/flow_accessibility.py Outdated
Comment thread spint/flow_accessibility.py Outdated
Comment thread spint/flow_accessibility.py Outdated
Comment thread spint/flow_accessibility.py Outdated
Comment thread spint/__init__.py Outdated
Comment thread 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())

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Contributor Author

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 :).

@ljwolf

ljwolf commented Jul 30, 2021

Copy link
Copy Markdown
Member

Looks good @lenkahas 🎉

I've got some comments/suggestions for you!

@jGaboardi

Copy link
Copy Markdown
Member

@ljwolf, It looks like @lenkahas has addressed your comments (from what I can tell). Is there anything preventing this merge?

@jGaboardi jGaboardi mentioned this pull request Oct 29, 2023
@lenkastatham

Copy link
Copy Markdown
Contributor Author

I have recently reviewed the function and needed to alter the calculation for the bipartite graph.
The test runs fine and I fixed some spelling mistakes inside the function.
Should be ready to go.

@lenkastatham

Copy link
Copy Markdown
Contributor Author

I have accidentally closed this. Could this be reopened?

@martinfleis martinfleis reopened this Dec 19, 2023
@ljwolf
ljwolf requested a review from TaylorOshan December 19, 2023 14:05
@ljwolf

ljwolf commented Dec 19, 2023

Copy link
Copy Markdown
Member

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?

@Romahr234

This comment was marked as spam.

@ljwolf

ljwolf commented Apr 10, 2025

Copy link
Copy Markdown
Member

This should probably have been merged at approval! should be good to go?

@TaylorOshan
TaylorOshan merged commit 050865a into pysal:master Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants