Skip to content

Commit

Permalink
Merge pull request #1159 from UV-CDAT/fix_rc1_tests
Browse files Browse the repository at this point in the history
Fix rc1 tests
  • Loading branch information
doutriaux1 committed Mar 25, 2015
2 parents fbe51f1 + 1d8e73f commit a8e12d1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
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. )
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")
2 changes: 1 addition & 1 deletion testing/vcs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ cdat_add_test(vcs_test_taylor_2_quads
"${PYTHON_EXECUTABLE}"
${cdat_SOURCE_DIR}/testing/vcs/test_vcs_show.py
)
FOREACH(gm boxfill isofill isoline vector meshfill )
FOREACH(gm boxfill isofill isoline meshfill )
FOREACH(ptype 0 -3 aeqd)
cdat_add_test(vcs_test_basic_${gm}_masked_${ptype}_proj
"${PYTHON_EXECUTABLE}"
Expand Down

0 comments on commit a8e12d1

Please sign in to comment.