Loading really old run xml files caused the website to crash
authorDiane Trout <diane@caltech.edu>
Wed, 17 Jun 2009 19:24:29 +0000 (19:24 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 17 Jun 2009 19:24:29 +0000 (19:24 +0000)
commit31f2a7d8e7fdbf919155136b629bc9b295303248
tree2bcbd4c258d142585df97ef26e96887f19ee1e88
parentbf28b79e8226d88b7e4942f3844183b1c36ba86a
Loading really old run xml files caused the website to crash
with an attribute error.

frontend/samples/views.py line 220 had
  eland_summary = run.gerald.eland_results.results[end][lane_id]

However really old run.xmls lacked any eland_results so
I added some code to add dummy entries if the Eland class
wasn't initialized.

Also this adds a bit of test code which at least tries to load
a couple run xml files.
htsworkflow/pipelines/eland.py
htsworkflow/pipelines/test/test_load_run_xml.py [new file with mode: 0644]
htsworkflow/pipelines/test/testdata/run_207B2AAXX_2008-04-12.xml [new file with mode: 0644]
htsworkflow/pipelines/test/testdata/run_FC12150_2007-09-27.xml [new file with mode: 0644]