Skip to content

Commit

Permalink
Disable antialiasing for tests for reproducible images
Browse files Browse the repository at this point in the history
Issue: #1432
  • Loading branch information
sankhesh committed Jul 6, 2015
1 parent 49fb29c commit 1cbb925
Show file tree
Hide file tree
Showing 64 changed files with 66 additions and 1 deletion.
1 change: 1 addition & 0 deletions Packages/vcs/Test/test_auto_time_labels.py
Expand Up @@ -10,6 +10,7 @@
s=f('ta',latitude=slice(5,6),level=slice(0,1),squeeze=1)
## s.info()
x=vcs.init()
x.setantialiasing(0)


b=x.createboxfill('new2')
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_1D_missing.py
Expand Up @@ -6,6 +6,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
yx =x.createyxvsx()
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_1D_with_manyDs.py
Expand Up @@ -6,6 +6,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_1d_in_boxfill.py
Expand Up @@ -6,6 +6,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_1d_marker_not_shown_if_xaxis_flipped.py
Expand Up @@ -11,6 +11,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_boxfill.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_isofill.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_isoline.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_isoline_colored.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_isoline_text_labels.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_isoline_text_labels_colored.py
Expand Up @@ -11,6 +11,7 @@
s=f("clt",slice(0,12)) # read only 12 times steps to speed up things

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_animate_meshfill.py
Expand Up @@ -24,6 +24,7 @@
for i in range(4):
s2[i]=s2[i]*(1+float(i)/10.)
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_10x10_masked_numpy.py
Expand Up @@ -9,6 +9,7 @@
s=numpy.reshape(s,(10,10))
s=numpy.ma.masked_greater(s,.5)
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_10x10_numpy.py
Expand Up @@ -8,6 +8,7 @@
s= numpy.sin(numpy.arange(100))
s=numpy.reshape(s,(10,10))
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_custom.py
Expand Up @@ -11,6 +11,7 @@

# Initialize canvas:
canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200,1091,units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_custom_ext1.py
Expand Up @@ -11,6 +11,7 @@

# Initialize canvas:
canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200,1091,units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_custom_ext1_ext2.py
Expand Up @@ -11,6 +11,7 @@

# Initialize canvas:
canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200,1091,units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_custom_ext2.py
Expand Up @@ -11,6 +11,7 @@

# Initialize canvas:
canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200,1091,units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_custom_non_default_levels.py
Expand Up @@ -11,6 +11,7 @@

# Initialize canvas:
canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200,1091,units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_lev1_lev2.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt",slice(0,1),squeeze=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_lev1_lev2_ext1.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt",slice(0,1),squeeze=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_lev1_lev2_ext1_ext2.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt",slice(0,1),squeeze=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_lev1_lev2_ext2.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
f=cdms2.open(vcs.sample_data+"/clt.nc")
s=f("clt",slice(0,1),squeeze=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_boxfill_lev1_lev2_ta_missing.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
f=cdms2.open(vcs.sample_data+"/ta_ncep_87-6-88-4.nc")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_celine_iso_bug.py
Expand Up @@ -8,6 +8,7 @@
f=cdms2.open(os.path.join(pth0,"celine.nc"))
s=f("data")
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.scriptrun(os.path.join(pth0,"celine.json"))
i=x.getisofill("celine")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_celine_iso_bug_part2.py
Expand Up @@ -8,6 +8,7 @@
f=cdms2.open(os.path.join(pth0,"celine.nc"))
s=f("data")
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.scriptrun(os.path.join(pth0,"celine.json"))
i=x.getisofill("celine")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_draw_logo_on.py
Expand Up @@ -5,6 +5,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.setbgoutputdimensions(1200,1091,units="pixels")
a=numpy.arange(100)
a.shape=(10,10)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_first_png_blank.py
Expand Up @@ -7,6 +7,7 @@
f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
T=f('clt')
v = vcs.init()
v.setantialiasing(0)
v.setbgoutputdimensions(1200,1091,units="pixels")
v.plot(T,bg=1)
# This will write a blank plot to a file:
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_gen_meshfill.py
Expand Up @@ -6,6 +6,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_infinity.py
Expand Up @@ -14,6 +14,7 @@
s[9,2] = numpy.nan

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_isoline_labels.py
Expand Up @@ -11,6 +11,7 @@
data = dataset("clt")

canvas = vcs.init()
canvas.setantialiasing(0)
canvas.setbgoutputdimensions(1200, 1091, units="pixels")
canvas.drawlogooff()

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_lon_axes_freak_out.py
Expand Up @@ -13,6 +13,7 @@


x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_meshfill_draw_mesh.py
Expand Up @@ -4,6 +4,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.setbgoutputdimensions(1200,1091,units="pixels")
x.drawlogooff()
fnmcurv = os.path.join(vcs.sample_data,'sampleCurveGrid4.nc')
Expand Down
2 changes: 2 additions & 0 deletions testing/vcs/test_meshfill_regular_grid.py
Expand Up @@ -4,10 +4,12 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
x = vcs.init()
x.setantialiasing(0)
f = cdms2.open(os.path.join(vcs.sample_data, "clt.nc"))
s = f("clt")
x.meshfill(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_oned_level_axis.py
Expand Up @@ -12,6 +12,7 @@
ta=f("ta",time=slice(0,1),squeeze=1)
ta=cdutil.averager(ta,axis="yx")
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(ta,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_plot_unstructured_via_boxfill.py
Expand Up @@ -10,6 +10,7 @@
f = cdms2.open(os.path.join(vcs.sample_data,"sampleCurveGrid4.nc"))
s = f("sample")
x = vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_polar_set_opt_param_polar.py
Expand Up @@ -12,6 +12,7 @@
f=cdms2.open(os.path.join(vcs.sample_data,'clt.nc'))
s=f("clt",slice(0,1),squeeze=1)
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
i=x.createisofill()
p=x.getprojection("polar")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_remove_marker_none_1d.py
Expand Up @@ -12,6 +12,7 @@
dummy_data = numpy.arange(50, dtype=numpy.float32)

x = vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_1D_datawc.py
Expand Up @@ -6,6 +6,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_1D_datawc_missing.py
Expand Up @@ -6,6 +6,7 @@
import checkimage

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

Expand Down
2 changes: 1 addition & 1 deletion testing/vcs/test_vcs_antialiasing.py
Expand Up @@ -5,7 +5,7 @@
x.open()

## test it is off by default
assert(x.getantialiasing()==0)
assert(x.getantialiasing()==16)

## test we can set it
x.setantialiasing(3)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_auto_time_labels.py
Expand Up @@ -6,6 +6,7 @@
f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
s=f("clt",longitude=slice(34,35),squeeze=1)
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")
x.plot(s,bg=1)
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_basic_gms.py
Expand Up @@ -38,6 +38,7 @@
bg = not args.show

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
if bg:
x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_basic_vectors.py
Expand Up @@ -33,6 +33,7 @@
bg = not args.show

x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()
if bg:
x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_flipNone.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_flipX.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_flipXY.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_flipY.py
Expand Up @@ -5,6 +5,7 @@
sys.path.append(pth)
import checkimage
x=vcs.init()
x.setantialiasing(0)
x.drawlogooff()

x.setbgoutputdimensions(1200,1091,units="pixels")
Expand Down
1 change: 1 addition & 0 deletions testing/vcs/test_vcs_isofill_data_read_north_to_south.py
Expand Up @@ -8,6 +8,7 @@
f = cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
clt = f("clt",latitude=(80.0, 38.0),squeeze=1,longitude=(-180.0, 180.0),time=slice(0,1))
x = vcs.init()
x.setantialiasing(0)
gm = vcs.createisofill()
gm.projection="polar"
x.plot( clt,gm)
Expand Down

0 comments on commit 1cbb925

Please sign in to comment.