def test_with_numbered_file_series(self): filenames = numbered_file_series(self.get_filename("image_c_"), 0, 3, ".edf", digits=3) serie = FileSeries(filenames=filenames) self.assertEqual(serie.nframes, 10) serie.close()
def setUp(self): """ note extension has the . in it""" self.fso = numbered_file_series("mydata", 0, 10005, ".edf")
def setUp(self): """ note extension has the . in it""" self.fso = numbered_file_series("mydata", 0, 10005, ".edf")
distance=options.distance, border=options.border, wvln=options.wvln, omegasign=options.omegasign, powfac=options.powfac, overflow=options.overflow, detrend=options.detrend, monitorval=options.monitorval, monitorcol=options.monitorcol, maskfilename=options.maskfilename, omega_zero=options.omega_zero, chi_zero=options.chi_zero) for j in range(options.jthreads) ] tmp_in = file_series.numbered_file_series(options.stem, options.first, options.last, options.extn) import os files_in = [] for f in tmp_in: if os.path.exists(f): files_in.append(f) else: print "Missing image", f ostem = options.stem if options.newstem is not None: ostem = options.newstem files_out = file_series.numbered_file_series( ostem + "_%d." % (options.run),
def test_with_numbered_file_series(self): filenames = numbered_file_series(self.get_filename("image_c_"), 0, 3, ".edf", digits=3) serie = FileSeries(filenames=filenames) self.assertEqual(serie.nframes, 10) serie.close()