From f329e728cc26dd6cfef10733d303c650824ebc7e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 11 Nov 2008 10:51:25 -0500 Subject: [PATCH 1/1] Began versioning. --- calibcant/config.py | 25 +++++++++++++++++++++++++ calibcant/config.pyc | Bin 0 -> 866 bytes 2 files changed, 25 insertions(+) create mode 100644 calibcant/config.py create mode 100644 calibcant/config.pyc diff --git a/calibcant/config.py b/calibcant/config.py new file mode 100644 index 0000000..2374ba6 --- /dev/null +++ b/calibcant/config.py @@ -0,0 +1,25 @@ +"""Define some variables to configure the package for a particular lab +and workflow.""" + +import z_piezo_utils + +DEFAULT_TEMP = 22 # assume 22 deg C +LOG_DATA = True # quietly grab all real-world data and log to LOG_DIR +LOG_DIR = '/home/wking/rsrch/data/calibrate_cantilever' +GNUFIT_DATA_BASE='./calibrate_cantilever_fitdata' +TEXT_VERBOSE = True # for debugging +GNUPLOT_VERBOSE = True # turn on fit check plotting +PYLAB_VERBOSE = True # turn on plotting +PYLAB_INTERACTIVE = True # select between draw() and show() for flushing plots +BASE_FIGNUM = 20 # to avoid writing to already existing figures + +# zpGain zpiezo applied voltage per output Volt +zpGain = z_piezo_utils._usual_zpGain +# zpSensitivity nm zpiezo response per applied Volt +zpSensitivity = z_piezo_utils._usual_zpSensitivity +# Vzp_out2V function that converts output DAC bits to Volts +Vzp_out2V = z_piezo_utils._usual_Vzp_out2V +# Vphoto_in2V function that converts input ADC bits to Volts +Vphoto_in2V = z_piezo_utils._usual_Vphoto_in2V +# zeroVphoto_bits ADC bit output for a 0V input +zeroVphoto_bits = z_piezo_utils._usual_zeroVphoto_bits diff --git a/calibcant/config.pyc b/calibcant/config.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f8711bbc7523b982f8afe9f0d8fec10f83b76032 GIT binary patch literal 866 zcmZuw-EP`26gDZPh0^tB-7cqGB26OFuB&Qc1cpR`L5eotSSB%Gk;akjfZ%2J5PP$} zz;}LFc>EYJBR@m zQCvj$6vd|qmn?H;@!VqBVg)AYMiI(i(3NzOu$O!Z+5qMfj~X?ht-wYK>}V zriE_+O*Z8zbCq~z?vhGQCka!o7H%ZcDWBz%xq8mrj7AGOWA0Q)mx3oXkMe{{H=&aX zO=EW@?m)jVNKCe;Vf z*Ix~hDc9ybeg~48Nv_Qn2#G~Rh`t1SLo&`bg5;1*=_)YIpyfYxLlOp$16>3nlsVJq zV08O!()2^$Cb3RusIMW=?me|Sp^cG-KMHJ~F!&ylaWHK3fwxaLc)*W1lz z$BgNGCmnAxB69s{tjj