<jupyter_start><jupyter_text>Example fitting AWG to plunger factor Many system have a bias T with attenuation on the fast, we need to find the factor from the AWG to the gate voltage. The data can be acquried by making a scan xxxx. The function is `measure_awg_to_plunger`<jupyter_code>%matplotlib inline
import os
import qtt
import pickle
exampledatadir=os.path.join(qtt.__path__[0], 'exampledata')
result = pickle.load(open(os.path.join(exampledatadir, 'misc', 'awg_to_plunger_scan.pickle'), 'rb') )
print(result)
from qtt.algorithms.awg_to_plunger import measure_awg_to_plunger, analyse_awg_to_plunger, plot_awg_to_plunger
aresult=analyse_awg_to_plunger(result,fig=None)
print('correction to factor: %.3f'  % aresult['awg_to_plunger_correction'])<jupyter_output>scanratio: 55.620
correction to factor: -0.900<jupyter_text>Why is the factor negative? We should check the code, I think it should be positive<jupyter_code>plot_awg_to_plunger(aresult, fig=100)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08796764408493428, 'fraction_numerical': 0.014155712841253791, 'mean_word_length': 7.918918918918919, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '364453', 'license': 'MIT', 'n_tokens_mistral': 385, 'n_tokens_neox': 360, 'n_words': 92, 'path': 'docs/notebooks/analysis/example_awg_to_plunger.ipynb', 'repo_name': 'dpfranke/qtt', 'size': '989'}