From: W. Trevor King Date: Sat, 3 Jan 2009 15:29:46 +0000 (-0500) Subject: calib_save_analysis() now uses string_errors() to format output. X-Git-Tag: 0.4~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a8f84df5194ff1b3b3ce46f54c33564fa21f3f8;p=calibcant.git calib_save_analysis() now uses string_errors() to format output. --- diff --git a/calibcant/analyze.py b/calibcant/analyze.py index a46eddb..d41dced 100755 --- a/calibcant/analyze.py +++ b/calibcant/analyze.py @@ -163,14 +163,10 @@ def calib_save_analysis(k, k_s, if log_dir != None : log = data_logger.data_log(log_dir, noclobber_logsubdir=False, log_name="calib_analysis_text") - log.write_binary(( - "k (N/m) : %g +/- %g\n" % (k, k_s) - + "photoSensitivity**2 (V/nm)**2 : %g +/- %g\n" % \ - (photoSensitivity2_m, photoSensitivity2_s) - + "T (K) : %g +/- %g\n" % (T_m, T_s) - + "1/Vp**2 (1/V)**2 : %g +/- %g\n" % \ - (one_o_Vphoto2_m, one_o_Vphoto2_s) - )) + log.write_binary(string_errors(k, k_s, + photoSensitivity2_m, photoSensitivity2_s, + T_m, T_s, + one_o_Vphoto2_m, one_o_Vphoto_2_s)) @splittableKwargsFunction() def calib_plot(bumps, Ts, vibs, plotVerbose=False) :