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

Fix rc1 tests #1159

Merged
merged 4 commits into from
Mar 25, 2015
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Packages/vcs/Lib/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,13 @@ def shift(self):
def update(self):
if self.backend.renWin and self.interactor is None:
self.interactor = self.backend.renWin.GetInteractor()
self.listeners.append(self.interactor.AddObserver("TimerEvent", self.animate))
self.listeners.append(self.interactor.AddObserver("LeftButtonPressEvent", self.click))
self.listeners.append(self.interactor.AddObserver("MouseMoveEvent", self.hover))
self.listeners.append(self.interactor.AddObserver("LeftButtonReleaseEvent", self.release))
self.init_buttons()
self.init_toolbar()
if self.interactor is not None:
self.listeners.append(self.interactor.AddObserver("TimerEvent", self.animate))
self.listeners.append(self.interactor.AddObserver("LeftButtonPressEvent", self.click))
self.listeners.append(self.interactor.AddObserver("MouseMoveEvent", self.hover))
self.listeners.append(self.interactor.AddObserver("LeftButtonReleaseEvent", self.release))
self.init_buttons()
self.init_toolbar()

self.displays = [vcs.elements["display"][display] for display in self.canvas.display_names]

Expand Down
4 changes: 2 additions & 2 deletions testing/cdms2/cdtest03.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
timestr = ['2000','2001','2002']
u = x[0]

f = cdms2.createDataset('readwrite.nc')
f = cdms2.createDataset('readwrite3.nc')
tobj = f.createAxis('time',numpy.array([time[1]]))
tobj.units = 'days since 2000-1-1'
latobj = f.createAxis('latitude',lat)
Expand Down Expand Up @@ -52,7 +52,7 @@

f.close()
#-----------------------------------------------------------
g = cdms2.openDataset('readwrite.nc','r+')
g = cdms2.openDataset('readwrite3.nc','r+')
con = g.Conventions
try:
con = '<not read>'
Expand Down
4 changes: 2 additions & 2 deletions testing/cdms2/cdtest04.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
timestr = ['2000','2001','2002']
u = x[0]

f = cdms2.createDataset('readwrite.nc')
f = cdms2.createDataset('readwrite4.nc')
pth = os.path.dirname(os.path.abspath(__file__))
h = cdms2.open(os.path.join(pth,'readonly.nc'))
tobj = f.createAxis('time',numpy.ma.array([time[1]]))
Expand Down Expand Up @@ -81,7 +81,7 @@

f.close()
#-----------------------------------------------------------
g = cdms2.open('readwrite.nc','r+')
g = cdms2.open('readwrite4.nc','r+')
try:
con = '<not read>'
con = g.Conventions
Expand Down
4 changes: 2 additions & 2 deletions testing/dv3d/TestManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test( self, interactive=False ):
try:
print "Copying ref image %s to %s in %s " % ( self.image_name, ref_image, os.path.abspath('.') )
shutil.copy( self.image_name, ref_image )
ret = checkimage.check_result_image( ref_image, test_image, checkimage.defaultThreshold )
ret = checkimage.check_result_image( ref_image, test_image, checkimage.defaultThreshold+3. )
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ThomasMaxwell that does not seem to be picked up by test suite

except IOError:
print "No ref image '%s' found." % ref_image
ret = 0
Expand Down Expand Up @@ -180,4 +180,4 @@ def writeCMakeDef( self, f ):
f.write( " %s\n" % self.name )
f.write( " False\n" )
f.write( " ${BASELINE_DIR}\n" )
f.write( ")\n\n\n")
f.write( ")\n\n\n")