Remove unused variables
authorDiane Trout <diane@ghic.org>
Thu, 2 Jun 2016 00:03:26 +0000 (17:03 -0700)
committerDiane Trout <diane@ghic.org>
Fri, 24 Jun 2016 22:55:58 +0000 (15:55 -0700)
experiments/models.py
htsworkflow/submission/submission.py
htsworkflow/submission/test/test_submission.py

index 1844fe593e99ec43e4e2d8bf20aa803d667a6bb1..4a42caae4ba8021d124648c75bd25bedd5893f2b 100644 (file)
@@ -205,10 +205,8 @@ class FlowCell(models.Model):
         if result_root is None:
             return
 
-        result_home_dir = os.path.join(settings.RESULT_HOME_DIR, '')
         run_xml_re = re.compile(glob.fnmatch.translate('run*.xml'))
 
-        result_dirs = []
         for dirpath, dirnames, filenames in os.walk(result_root):
             for filename in filenames:
                 if run_xml_re.match(filename):
index 8734be7e373e59c7f0888c8b7bd90ee75acca635..50e822877bee7dcdeccc89226ffc7707a7a902c3 100644 (file)
@@ -285,7 +285,6 @@ class Submission(object):
 
     def _add_flowcell_details(self):
         template = loader.get_template('aws_flowcell.sparql')
-        results = self.execute_query(template, Context())
 
         parser = RDF.Parser(name='rdfa')
         for r in self.execute_query(template, Context()):
index da5008dfa9c1c4dc826f866190276652a4d20739..8daee447edb16c77890962d71c52e3d63711c175 100644 (file)
@@ -72,7 +72,6 @@ class TestSubmission(TestCase):
         shutil.rmtree(self.tempdir)
 
     def test_create_submission(self):
-        model = get_model()
         s = Submission('foo', self.model, 'http://localhost')
         self.assertEqual(str(s.submissionSet),
                          "http://jumpgate.caltech.edu/wiki/SubmissionsLog/foo")