Allow calib_analyze_all to run when there are no previous analyzed bumps, etc.
authorW. Trevor King <wking@drexel.edu>
Fri, 2 Mar 2012 18:57:14 +0000 (13:57 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 2 Mar 2012 18:57:20 +0000 (13:57 -0500)
commitc892b157772015b4834771780593a712128b6bb7
tree0fe253cd85dc4ad59f00d86a295e54a09741f7e5
parent74e710ce1bc6df3fe4f453b5bcd670375eb935c1
Allow calib_analyze_all to run when there are no previous analyzed bumps, etc.

This avoids:

  Traceback (most recent call last):
    ...
    File ".../calibcant/analyze.py", line 410, in calib_analyze_all
      bumps[i] = sensitivity
  TypeError: 'NoneType' object does not support item assignment

which can happen if you construct the calibration datafile by hand and
have not yet analyzed it with calibcant.
calibcant/analyze.py