Rogers, Chris wrote:
Committed to the trunk r1014
There still seems to be something strange going on. When I now run the complete set of unit tests, I get several failures which don't appear to happen if I run the tests individually.
Output is below. The first one I looked into a bit deeper and it seems that when it's run with all the other tests, the output of the process function doesn't contain any tracks.
Current version of my branch is on https://code.launchpad.net/~jan.greis/maus/global-recon-rk
======================================================================
ERROR: Check mapper runs for mc good. Check it tracks primaries by testing
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jan/MICE/MAUS/maus-globalrecon/build/test_MapCppSimulation.py", line 109, in test_mc_good
ev_0 = doc["mc_events"][0]["tracks"][0]
IndexError: list index out of range
======================================================================
ERROR: Test maus_cpp.Field.get_field_value(...)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jan/MICE/MAUS/maus-globalrecon/build/test_maus_cpp/test_field.py", line 60, in test_get_field_value
self.assertAlmostEqual(field_value[i], 0., 1e-12)
File "/home/jan/MICE/.MAUSSTABLE/maus-v1.4.0/third_party/install/lib/python2.7/unittest/case.py", line 550, in assertAlmostEqual
if round(abs(second-first), places) 0:
TypeError: 'float' object cannot be interpreted as an index
====================================================================
FAIL: test maus_cpp.simulation.track_particles - good json
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jan/MICE/MAUS/maus-globalrecon/build/test_maus_cpp/test_simulation.py", line 94, in test_track_particles_good
self.assertGreater(len(mc_out[i]["tracks"]), 0)
AssertionError: 0 not greater than 0