Example TuningResult
[1]:
import nanotune as nt
from nanotune.device_tuner.tuningresult import TuningResult, MeasurementHistory
Logging hadn't been started.
Activating auto-logging. Current session state plus future input saved.
Filename : /Users/jana/.qcodes/logs/command_history.log
Mode : append
Output logging : True
Raw input log : False
Timestamping : True
State : active
Qcodes Logfile : /Users/jana/.qcodes/logs/210816-15278-qcodes.log
[2]:
result = TuningResult(
'gatecharacterization',
True,
guids=['aaaaaaaa-0000-0000-0000-000000000000'],
data_ids=[1],
db_name='test_po.db',
ml_result={'low_voltage': -0.4,
'high_voltage': -0.6,
'transition_voltage': -0.5,
}
)
[3]:
result.success
[3]:
True
[4]:
result.to_dict()
[4]:
{'stage': 'gatecharacterization',
'success': True,
'guids': ['aaaaaaaa-0000-0000-0000-000000000000'],
'ml_result': {'low_voltage': -0.4,
'high_voltage': -0.6,
'transition_voltage': -0.5},
'data_ids': [1],
'db_name': 'test_po.db',
'db_folder': '',
'termination_reasons': [],
'comment': '',
'timestamp': '',
'status': {}}
[5]:
ms = MeasurementHistory('doubledot_test')
[6]:
ms.add_result(result, 'gate1_characterization')
[7]:
ms.tuningresults['gate1_characterization'].ml_result
[7]:
{'low_voltage': -0.4, 'high_voltage': -0.6, 'transition_voltage': -0.5}
[ ]:
[ ]:
[ ]:
[ ]: