Package nMOLDYN :: Package Tests :: Package EISF :: Module runTests |
[hide private]
[frames] | no frames]

# Source Code for Module nMOLDYN.Tests.EISF.runTests

     1  import os
     2  import sys
     3  sys.path.insert(0, '/home/cs/pellegrini/nMOLDYN/development')
     4  from nMOLDYN.Core.IOFiles import convertASCIIToNetCDF
     5
     6  pMoldyn='/home/cs/pellegrini/nMOLDYN/nMOLDYN2.2.5/nMoldyn/bin/pMoldyn'
     7
     8  if len(sys.argv) > 1:
     9      selectedTests = [int(v) for v in sys.argv[1:]]
    10  else:
    11      selectedTests = range(1,13)
    12
    13  for i in selectedTests:
    14      print "Run test ", i
    15      os.system(pMoldyn + ' --eisf --input=EISF%s_Reference.inp' % i)
    16
    17      os.system('mv test.plot EISF%s_Reference.plot' % i)
    18      convertASCIIToNetCDF('EISF%s_Reference.plot' % i, 'EISF%s_Reference.nc' % i)
    19