"""
import numpy
-import common # common module for the calibcant package
-import config # config module for the calibcant package
+
import data_logger
-import linfit
from splittable_kwargs import splittableKwargsFunction, \
make_splittable_kwargs_function
+import .common
+import .config
+
+
def C_to_K(celsius) :
"Convert Celsius -> Kelvin."
return celsius + 273.15
# write to Trevor King, Drexel University, Physics Dept., 3141 Chestnut St.,
# Philadelphia PA 19104, USA.
-from common import VERSION
+from .common import VERSION
"""
import numpy
+
+import data_logger
from splittable_kwargs import splittableKwargsFunction, \
make_splittable_kwargs_function
-import data_logger
-import common # common module for the calibcant package
-import config # config module for the calibcant package
-import T_analyze # T_analyze module for the calibcant package
+import .common
+import .config
+import .T_analyze
+
kb = 1.3806504e-23 # Boltzmann's constant in J/K
import numpy
import time
+
import data_logger
-import piezo.z_piezo_utils as z_piezo_utils
import FFT_tools
-import linfit
-from calibcant_bump_analyze import bump_analyze
+import piezo.z_piezo_utils as z_piezo_utils
+
+from .bump_analyze import bump_analyze
+
LOG_DATA = True # quietly grab all real-world data and log to LOG_DIR
LOG_DIR = '$DEFAULT$/calibrate_cantilever'
import numpy
import scipy.optimize
-import common # common module for the calibcant package
-import config # config module for the calibcant package
+
import data_logger
from splittable_kwargs import splittableKwargsFunction, \
make_splittable_kwargs_function
+import .common
+import .config
+
@splittableKwargsFunction()
def Vzp_bits2nm(data_bits, zpGain=config.zpGain,
import numpy
import time
+
+import FFT_tools
import piezo.z_piezo_utils as z_piezo_utils
from splittable_kwargs import splittableKwargsFunction, \
make_splittable_kwargs_function
-import FFT_tools
-import common
-import config
-import bump_analyze
-import T_analyze
-import vib_analyze
-import analyze
+import .common
+import .config
+import .bump_analyze
+import .T_analyze
+import .vib_analyze
+import .analyze
+
# bump family
# write to Trevor King, Drexel University, Physics Dept., 3141 Chestnut St.,
# Philadelphia PA 19104, USA.
-import config
+import .config
+
VERSION="0.4"
import piezo.z_piezo as z_piezo
+
DEFAULT_TEMP = 22 # assume 22 deg C
LOG_DATA = True # quietly grab all real-world data and log to LOG_DIR
LOG_DIR = '$DEFAULT$/calibrate_cantilever'
"""
import os, time, numpy
-import GnuplotBiDir # used for fitting lorentzian
-import scipy.optimize # alternative for fitting lorentzian
-import common # common module for the calibcant package
-import config # config module for the calibcant package
+import GnuplotBiDir # can be used for fitting lorentzian
+import scipy.optimize # can be used for fitting lorentzian
+
import data_logger
import FFT_tools
from splittable_kwargs import splittableKwargsFunction, \
make_splittable_kwargs_function
+import .common
+import .config
+
+
PLOT_GUESSED_LORENTZIAN=False
@splittableKwargsFunction()
if options.ofilename != None :
ofile.close()
+
+# LocalWords: calibcant AFM