device: /dev/ttyS0
baudrate: 9600
max-current: 0.0
+ fallback-temperature: 295.15
far: 3e-05
>>> pyafm.storage.save_afm(afm=afm, filename=filename)
>>> pprint_HDF5(filename=filename) # doctest: +REPORT_UDIFF
/
+ <HDF5 dataset "fallback-temperature": shape (), type "<f8">
+ 295.15
<HDF5 dataset "far": shape (), type "<f8">
3e-05
<HDF5 dataset "main-axis": shape (), type "|S1">
"""
if hasattr(self.temperature, 'get_temperature'):
return self.temperature.get_temperature()
+ return self.config['default-temperature']
def move_just_onto_surface(self, depth=-50e-9, setpoint=2,
min_slope_ratio=10, far=200, steps=20,
help='Configure the underlying temperature sensor.',
config_class=TemperatureConfig,
default=None),
+ _config.FloatSetting(
+ name='fallback-temperature',
+ help=('Temperature in Kelvin to use if no temperature sensor is '
+ 'configured.'),
+ default=295.15),
_config.FloatSetting(
name='far',
help=('Approximate distance in meters to move away to get "far" '