Skip to content
Snippets Groups Projects
Commit 573b2405 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

Use setCDO in python python AND ruby

parent 3c2a16a4
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,11 @@ class Cdo(object):
def unsetReturnArray(self):
self.setReturnArray(False)
def setCDO(self,value):
self.CDO = value
#==================================================================
# Addional operotors:
# Addional operators:
#------------------------------------------------------------------
def boundaryLevels(self,**kwargs):
ilevels = map(float,self.showlevel(input = kwargs['input'])[0].split())
......
......@@ -6,7 +6,7 @@ setup (name = 'cdo',
author = "Ralf Mueller",
author_email= "stark.dreamdetective@gmail.com",
license = "GPLv2",
description = """pyhton bindings to CDO""",
description = """python bindings to CDO""",
py_modules = ["cdo"],
url = "http://pypi.python.org/pypi/cdo",
classifiers = [
......
......@@ -7,6 +7,11 @@ class CdoTest(unittest.TestCase):
def testCDO(self):
print(cdo.CDO)
self.assertEqual('cdo',cdo.CDO)
newCDO="/usr/local/bin/cdo"
cdo.setCDO(newCDO)
self.assertEqual(newCDO,cdo.CDO)
cdo.setCDO('cdo')
def testDbg(self):
self.assertEqual(False,cdo.debug)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment