Skip to content
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

DOC: correct typo in extending ndimage with C #9188

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

mikofski
Copy link
Contributor

@mikofski mikofski commented Aug 29, 2018

Corrected output:

>>> callback = LowLevelCallable(get_transform(), ptr)
>>> im = np.arange(12).reshape(4, 3).astype(np.float64)
>>> print(ndimage.geometric_transform(im, callback))

[[0.     0.     0.    ]
 [0.     1.3625 2.7375]
 [0.     4.8125 6.1875]
 [0.     8.2625 9.6375]]

For traceback see related issue.

* closes scipy#9167 
* `LowLevelCallable` should call `get_transform()` from compiled Python extension `example.c`
@mikofski
Copy link
Contributor Author

mikofski commented Aug 29, 2018

The test failure is due to doctest output mismatch, so it is unrelated. See #9187

@rgommers rgommers added Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org maintenance Items related to regular maintenance tasks labels Aug 31, 2018
@rgommers rgommers added this to the 1.2.0 milestone Aug 31, 2018
@rgommers rgommers merged commit 2825261 into scipy:master Aug 31, 2018
@rgommers
Copy link
Member

Thanks for the fix @mikofski

@mikofski mikofski deleted the patch-1 branch August 31, 2018 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: BUG: typo in ndimage LowLevelCallable tutorial example
2 participants