Skip to content

Commit

Permalink
Removed duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Apr 23, 2015
1 parent d6b81af commit 3d1a738
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions testing/vcs/test_plot_unstructured_via_boxfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
x.drawlogooff()
x.setbgoutputdimensions(1200,1091,units="pixels")

import vcs
import os,sys
import cdms2

pth = os.path.join(os.path.dirname(__file__),"..")

This comment has been minimized.

Copy link
@alliepiper

alliepiper Apr 23, 2015

Contributor

From here to x.plot(...) (lines 16-27 in the new diff) looks repeated as well.

sys.path.append(pth)
import checkimage
Expand All @@ -38,14 +34,4 @@
print "fnm:",fnm
print "src:",src
ret = checkimage.check_result_image(fnm,src,checkimage.defaultThreshold)
sys.exit(ret)

fnm = "test_plot_unstructured_via_boxfill.png"
src=sys.argv[1]

x.png(fnm)

print "fnm:",fnm
print "src:",src
ret = checkimage.check_result_image(fnm,src,checkimage.defaultThreshold)
sys.exit(ret)
sys.exit(ret)

0 comments on commit 3d1a738

Please sign in to comment.