Beispiel #1
0
 def visgen(self, mpi=1):
     if self.spec_file is None:
         raise _InputError('No oobs file')
     if self.vis_in is None and self.oobs is None:
         raise _InputError('Neither uvgrid file nor oob source list exist.',
                           self.visgen.__name__, self.name)
     else:
         print '# visgen: ' + self.name
         maps.visgen(self.name, self.spec_file, oobs=self.oobs,
                     uvgrid=self.vis_in, mpi=mpi, site=self.site)
         self.vis_out = self.name + '.vis'
         self.vislog = self.name + '.vislog'
         self.update_spec()
         self.append_log('# $> visgen()\n'
                         '# >>>> visgen visibility: {0}\n'
                         '# >>>> visgen log file: {1}\n'
                         .format(self.vis_out, self.vislog))