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
Fix issue #6003 #6011
Fix issue #6003 #6011
Conversation
Should add a unit test to exercise this case. On Tue, Feb 16, 2016 at 5:49 PM, muahah notifications@github.com wrote:
|
Run into another problem while adding a test case : |
attn @tonysyu |
I fixed issue #6003 and added a test case for |
sp2[:, 0] += np.abs(x[0][0]) | ||
sp2[:, 1] += np.abs(y[0][0]) | ||
else: | ||
raise ValueError("'x' and 'y' should have the same dimensions") |
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.
This message is not strictly correct if, e.g., x.ndim == y.ndim == 3
.
By looking more closely, those checks are redundant because |
So is this complete? None of the streamlines in the test image appear to originate at the plotted points. Also, the file names do not need "test_image" in them; it's clear it's a test image from the directory. |
I pointed out the fact that streamlines do not exactly originate from starting points in #6002. Regarding the image names, I can change them. |
Please do not merge the master branch into your branch. Instead rebase your branch on top of current master and then force-push to your gh repo. |
The easiest thing to do is to fix this is to rebase + force push. I just did the rebase locally and there is fortunately no conflicts so (I am going to assume that your upsrteam remote is called 'matplotlib' and the remote pointing at your gh account is called origin # update your computer to know what gh knows
git remote update
# make sure you are one the branch this PR looks at
git checkout master
# rebase onto current master
git rebase matplotlib/master
# check gitk to make sure tis went well
# fail to push to your gh for pedagogical reasons
git push origin master:master
# try again with --force, only use this when you are sure
git push --force origin master:master |
Thank you, this is better now. |
It looks like you added some new test images and then modified them in later commits. Can you squash these down into a single commit so that the repository does not carry around the (wrong) intermediary results? |
Fix passage from data to grid coordinates for starting points.
Raise an explicit error when specified starting points are outside of the data boundaries.
With specified 'start_points'.
Change in 'streamplot' slightly modified some test cases
I rebased the whole thing to have clean an explicit commits (and no intermediary results). |
Thanks! The lower left point in the start point test does fall exactly on the stream line. Is that expected? |
The streamline do not originate from this point but from the point in the very corner (-3; -3). |
Ah, I missed that point was there. |
#6003
In
streamplot
, skipstart_points
that are on an existing streamline instead of raisingInvalidIndexError
.