8c0369683b639c63173328645f7b1ab83101a9b3
[calibcant.git] / calibcant / config.py
1 """Define some variables to configure the package for a particular lab
2 and workflow."""
3
4 import z_piezo
5
6 DEFAULT_TEMP = 22  # assume 22 deg C
7 LOG_DATA = True  # quietly grab all real-world data and log to LOG_DIR
8 LOG_DIR = '/home/wking/rsrch/data/calibrate_cantilever'
9 GNUFIT_DATA_BASE='./calibrate_cantilever_fitdata'
10 TEXT_VERBOSE = True      # for debugging
11 GNUPLOT_VERBOSE = True     # turn on fit check plotting
12 PYLAB_VERBOSE = True     # turn on plotting
13 PYLAB_INTERACTIVE = True # select between draw() and show() for flushing plots
14 BASE_FIGNUM = 20 # to avoid writing to already existing figures
15
16
17 # HACK
18 # make sure you make a system note (add_system_note) if you change
19 # these in case you don't have access to a z_piezo for conversion
20 # functions
21
22 # zpGain      zpiezo applied voltage per output Volt
23 zpGain = z_piezo.DEFAULT_GAIN
24 # zpSensitivity  nm zpiezo response per applied Volt
25 zpSensitivity = z_piezo.DEFAULT_SENSITIVITY
26 # Vzp_out2V   function that converts output DAC bits to Volts
27 Vzp_out2V = z_piezo.DEFAULT_VZP_OUT_2_VOLTS
28 # Vphoto_in2V function that converts input ADC bits to Volts
29 Vphoto_in2V = z_piezo.DEFAULT_VPHOTO_IN_2_VOLTS
30 # zeroVphoto_bits  ADC bit output for a 0V input
31 zeroVphoto_bits = z_piezo.DEFAULT_ZERO_PHOTODIODE_BITS