def createMMS(self, msname):
'''Create MMSs for tests with input MMS'''
prefix = msname.rstrip('.ms')
if not os.path.exists(msname):
os.system('cp -RL '+os.path.join(datapath,msname)+' '+ msname)
# Create an MMS for the tests
self.inpmms = prefix + ".test.mms"
if os.path.exists(self.inpmms):
os.system("rm -rf " + self.inpmms)
if os.path.exists(self.inpmms+'.flagversions'):
os.system("rm -rf " + self.inpmms +'.flagversions')
print("................. Creating test MMS ..................")
partition(vis=msname, outputvis=self.inpmms, flagbackup=False, separationaxis='auto')