added a skip_first and last keyword to limit files being worked on
This commit is contained in:
parent
83b1de873c
commit
56aec108d4
|
@ -219,7 +219,7 @@ def removeBackground(data,qlims=(0,10),max_iter=30,background_regions=[],force=F
|
|||
|
||||
|
||||
def doFolder(folder,files='*.edf*',nQ = 1500,force=False,mask=None,dark=10,norm='auto',
|
||||
saveChi=True,poni='pyfai.poni',storageFile='auto',save=True,diagnostic=None):
|
||||
saveChi=True,poni='pyfai.poni',storageFile='auto',save=True,diagnostic=None,skip_first=0,last=None):
|
||||
""" calc 1D curves from files in folder, returning a dictionary of stuff
|
||||
nQ : number of Q-points (equispaced)
|
||||
force : if True, redo from beginning even if previous data are found
|
||||
|
@ -247,7 +247,7 @@ def doFolder(folder,files='*.edf*',nQ = 1500,force=False,mask=None,dark=10,norm=
|
|||
else:
|
||||
saved = None
|
||||
|
||||
files = utils.getFiles(folder,files)
|
||||
files = utils.getFiles(folder,files)[skip_first:last]
|
||||
if saved is not None:
|
||||
files = [f for f in files if utils.getBasename(f) not in saved["files"]]
|
||||
|
||||
|
|
Loading…
Reference in New Issue