Browse Source

Minor corrections to doAnalysis

Andrej Studen@Labkey-KNM 1 year ago
parent
commit
a4028e9849
1 changed files with 7 additions and 1 deletions
  1. 7 1
      pythonScripts/doAnalysis.py

+ 7 - 1
pythonScripts/doAnalysis.py

@@ -30,8 +30,14 @@ def main(configFile):
          files=config.printFitParFinalRowNames(r,xsetup,m)
          fullFiles=[os.path.join(tempDir,code,f) for f in files]
          filesPresent=[os.path.isfile(f) for f in fullFiles]
-         if not all(filesPresent):
+         doRun=not all(filesPresent)
+         print(f'{code} mode {m} doRun: {doRun}')
+         #for i in range(len(filesPresent)):
+         #   print('{} {}'.format(filesPresent[i],fullFiles[i]))
+         #continue
+         if doRun:
             analysis.doAnalysisRow(r,xsetup,m)
+         print(f'{code} mode {m} done')
          getData.uploadFitParFinal(fb,r,xsetup,m)
       getData.updateStatus(db,r,xsetup,'doAnalysis')