From bccc71c481bad19cfd86789707f404d8664c142d Mon Sep 17 00:00:00 2001 From: corin Date: Fri, 28 Jan 2011 18:46:38 +0000 Subject: [PATCH] updated to work with the new tearsheet git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5112 348d0f76-0448-11de-a6fe-93d51630548a --- python/MPGQueuePipelineStatus.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/MPGQueuePipelineStatus.py b/python/MPGQueuePipelineStatus.py index e1f26877b..5c3707cb8 100644 --- a/python/MPGQueuePipelineStatus.py +++ b/python/MPGQueuePipelineStatus.py @@ -8,8 +8,9 @@ class status: self.yaml = yaml self.project = os.path.basename(self.yaml).split(".")[0] self.directory = os.path.dirname(self.yaml) + self.version = self.directory.split("/")[4].split("v")[1] self.dirkey = self.directory.split("/")[3] - if len(glob.glob(self.directory + "/SnpCalls/*.pdf")) >= 2: + if len(glob.glob(self.directory + "/SnpCalls/*.pdf")) >= 1: self.edate=max([os.path.getmtime(i) for i in glob.iglob(self.directory + "/SnpCalls/*.pdf")]) self.status = "In Review" elif len(glob.glob(self.directory + "/*/*.vcf")) >= 5: @@ -29,9 +30,9 @@ class update: Update = status(each) self.updates.append(Update) self.updates=sorted(self.updates, key=lambda update: update.edate) - print '{0:60} {1:15} {2:20} {3:7}'.format("Project","status","date","dirkey") # waht is this expecting for these valuse? + print '{0:60} {1:15} {2:20} {3:7}'.format("Project (version)","status","date","dirkey") # waht is this expecting for these valuse? for s in self.updates: - print '{0:60} {1:15} {2:20} {3:7}'.format(s.project, s.status, s.date, s.dirkey) + print '{0:60} {1:15} {2:20} {3:7}'.format(s.project+ " ("+ s.version + ")", s.status, s.date, s.dirkey) if __name__ == "__main__": go = update()