Began versioning.
authorW. Trevor King <wking@drexel.edu>
Tue, 11 Nov 2008 15:51:25 +0000 (10:51 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 11 Nov 2008 15:51:25 +0000 (10:51 -0500)
calibcant/config.py [new file with mode: 0644]
calibcant/config.pyc [new file with mode: 0644]

diff --git a/calibcant/config.py b/calibcant/config.py
new file mode 100644 (file)
index 0000000..2374ba6
--- /dev/null
@@ -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 (file)
index 0000000..f8711bb
Binary files /dev/null and b/calibcant/config.pyc differ