output change

This commit is contained in:
Marcel Paffrath 2016-06-01 14:13:15 +02:00
parent 9996033ca5
commit 02117399b5

View File

@ -293,7 +293,7 @@ class Tomo3d(object):
self.clearDir(directory) self.clearDir(directory)
def rmDir(self, directory): def rmDir(self, directory):
print('Removing directory %s...'%directory) #print('Removing directory %s...'%directory)
return os.rmdir(directory) return os.rmdir(directory)
def removeDirectories(self): def removeDirectories(self):
@ -357,7 +357,7 @@ class Tomo3d(object):
''' '''
nsrc = self.readNsrc() nsrc = self.readNsrc()
if self.nproc > nsrc: if self.nproc > nsrc:
raise ValueError('Number of spawned processes higher than number of sources') print('Warning: Number of spawned processes higher than number of sources')
return nsrc/self.nproc, nsrc%self.nproc return nsrc/self.nproc, nsrc%self.nproc
def srcIDs4Kernel(self, procID): def srcIDs4Kernel(self, procID):