-
Notifications
You must be signed in to change notification settings - Fork 13
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 #397 needed to store continent value #398
Conversation
class TestVCSTextsExtents(basevcstest.VCSBaseTest): | ||
def testUpdateDoesNotTriggerContinents(self): | ||
s = self.clt["clt"][0] | ||
self.x.plot(s, continents=0) |
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.
Interesting, I guess while I knew you could disable the continents somehow, I never knew this is how you did it.
@@ -4054,6 +4054,8 @@ def __plot(self, arglist, keyargs): | |||
dn.g_name = arglist[4] | |||
dn.array = arglist[:2] | |||
dn.backend = returned_kargs | |||
if "continents" in keyargs: | |||
dn._continents = keyargs["continents"] |
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.
After browsing the source code, I'm not seeing how this value stored on the display
is ever queried to avoid plotting the continents. To me it looks like the decision is made inside our vcs2vtk.genGrid(...)
function, based solely on the type of data we get. But I guess it's working, so it's fine with me.
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.
you're right, it's sort of obscure but i think it's there: https://github.com/CDAT/vcs/blob/master/vcs/VTKPlots.py#L491
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.
Ah, you referred to it with an underscore in your fix, so I was searching for it that way, forgetting about how you typically make "properties" out of those attributes. Thanks.
@scottwittenburg failures are in doc build/sphinx I think i'ts safe to merge from that point of view, doesn't seem related to this PR |
I was just searching through the CI output for "error", there were 86 occurrences, making it hard to tell what's going on. Some were image comparison size mismatches:
But there are a bunch of those in the passing py2 check, but what the heck? Why don't those cause test failures? Whatever. Then there are a bunch similar to this:
And again, many of the same in the py2 case. I have no idea what that's about. In both cases (check passed vs check failed), there are also some errors I've seen before coming from VTK when we do projection and an input point is outside the range it can handle:
From what I can tell, though, it seems you're right that the only kind of error we see in the failing case which we don't also see in the passing case, is this one:
Has that been happening with other PRs recently? |
No description provided.