Skip to content

fixed issues with model handler failing to correctly discover models#802

Merged
darribas merged 2 commits into
pysal:devfrom
ljwolf:dev
May 4, 2016
Merged

fixed issues with model handler failing to correctly discover models#802
darribas merged 2 commits into
pysal:devfrom
ljwolf:dev

Conversation

@ljwolf

@ljwolf ljwolf commented May 3, 2016

Copy link
Copy Markdown
Member

The justification for this PR is:

The handler contrib module, which is a Patsy/Pandas wrapper for spreg, had a pretty severe regression of unknown origin. This caused registry.py to fail to discover all models in pysal.spreg, and resulted in complete loss of functionality for the handler.

This was remedied by restricting the handler to only userclasses, changing the way arguments were parsed, and adding some name parsing to the patsy/pandas preparation step.

As a side effect, this PR also fixes the issue noted in the original specification, that additional unnamed positional arguments would pass silently through when the user supplied a formula. Now, this will not be the case.

In addition, tests were adapted to make sure the handler is now tested for all user classes in spreg. But, since this is in contrib, the handler won't get tested unless explicitly checked.

@ljwolf

ljwolf commented May 3, 2016

Copy link
Copy Markdown
Member Author

The notebook is screwed up. Let me patch it before merging, please!

@ljwolf

ljwolf commented May 3, 2016

Copy link
Copy Markdown
Member Author

Ok, the notebook should be fixed.

@darribas darribas merged commit f7d868f into pysal:dev May 4, 2016
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.

2 participants