[Swift-commit] r3048 - SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Aug 5 16:12:54 CDT 2009


Author: andric
Date: 2009-08-05 16:12:54 -0500 (Wed, 05 Aug 2009)
New Revision: 3048

Modified:
   SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/newfilecat.py
Log:
cleaned up the code a bit. this one is doing the 'move_vs_still' comparison

Modified: SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/newfilecat.py
===================================================================
--- SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/newfilecat.py	2009-08-05 21:11:51 UTC (rev 3047)
+++ SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/newfilecat.py	2009-08-05 21:12:54 UTC (rev 3048)
@@ -8,16 +8,16 @@
 
 def finder(L,value):
     listsubset = []
-    for ff in thefiles:
+    for ff in L:
         if fnmatch.fnmatch(ff,value):
             listsubset += [ff]
         
     return listsubset
 
 
-h = "lh"
+h = "rh"
 baseDir = os.getenv("cnari")+"/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis"
-outputDir = baseDir+"/turning_out"+h
+outputDir = baseDir+"/turning2_out"+h
 viewDir = baseDir+"/views"
 
 os.chdir(outputDir)
@@ -26,10 +26,10 @@
 thefiles = os.listdir(os.getcwd())
 print "Number of files in this dir: "+`len(thefiles)`
 
-for i in range(2,7):
-    onewayBrain = h+"_lag"+`i`+".oneway.1D"
+for i in range(0,2):
+    onewayBrain = "move_vs_still_"+h+"_lag"+`i`+".oneway.1D"
     print onewayBrain+" starting: "+time.ctime()
-    onewayfiles = finder(thefiles,"pa_vs_noise*.lag"+`i`+".oneway.chisqresult")
+    onewayfiles = finder(thefiles,"move_vs_still*.lag"+`i`+".oneway.chisqresult")
     print "Found all files in this subset, now building brain "+time.ctime()
     brainUNO = ''
     for pa in onewayfiles:
@@ -43,9 +43,9 @@
     shutil.copy2(onewayBrain,viewDir)
 
 
-    twowayBrain = h+"_lag"+`i`+".twoway.1D"
+    twowayBrain = "move_vs_still_"+h+"_lag"+`i`+".twoway.1D"
     print twowayBrain+" starting: "+time.ctime()
-    twowayfiles = finder(thefiles,"pa_vs_noise*.lag"+`i`+".twoway.chisqresult")
+    twowayfiles = finder(thefiles,"move_vs_still*.lag"+`i`+".twoway.chisqresult")
     print "Found all files in this subset, now building brain "+time.ctime()
     brainDOS = ''
     for pa in twowayfiles:




More information about the Swift-commit mailing list