8000 ENH: add linspace size param check to numpy.core by jisaacso · Pull Request #5948 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: add linspace size param check to numpy.core #5948

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

Closed
wants to merge 1 commit into from

Conversation

jisaacso
Copy link
@jisaacso jisaacso commented Jun 7, 2015

This ensures that only non-negative linspaces can be constructed.
This closes out #5937.

This ensures that only non-negative linspaces can be constructed.
This closes out numpy#5937.
@@ -82,6 +82,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):

"""
num = int(num)
assert num >= 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should raise a ValueError (with some detailed text). Also needs add a test, there should be tests for linspace already somewhere in /numpy/core/tests/test_function_base.py or so.

@jaimefrio
Copy link
Member

Closed by #6057.

@jaimefrio jaimefrio closed this Jul 9, 2015
@homu
Copy link
Contributor
homu commented Jul 9, 2015

☔ The latest upstream changes (presumably #6057) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0