This is an old revision of the document!


IST . tech

Note

vip.sweep_tracker = {} for k in ['Prim_sweep', 'Scnd_sweep']:

  vip.sweep_tracker[k] = 0

vip.sweep_tracker[k] += 1

import numpy as np

from matplotlib import cm as color_map import matplotlib.pyplot as plt

#from mpl_toolkits.mplot3d import Axes3D #from matplotlib.ticker import LinearLocator, FormatStrFormatter


def tic: return get_time()

def toc(tic) return get_time() - tic

vip._TIC = tic()

def bn_total_runtime(vip): runtime_seconds = toc(vip._TIC) … return message

def bn_tic(vip):

 vip._tic = tic()
 

def bn_toc(vip, toc = None):

 try:
 Dt = toc(vip._tic)
 message = "Elapsed time:\n\n"+Dt
 except YYY:
 message = "You need a tic to make a toc."
 
 vip.GUI_feedback(message)
 

tic toc _ total runtime _ _ _ check connections


def bn_check_connections(vip): message = “Connected instruments:\n” for instr_type in X:

for instr_name in instr_type:  
    if vip.is_connected(instr_name):
        message += instr_name+4*" "
    message += "\n"
        

vip.GUI_feedback(message)


* export plots

, figsize=(8, 6), dpi=80, facecolor='w', edgecolor='k'

* they all get an “adopt” and a “run this now” button

* try PyQt Designer

* x = y if CLAUSE else z

todo

- In the scientific computing part (measurement functions), possibly switch from list to numpy.ndarray (i.e. homogeneous, performance-optimized lists)

Put the item-select dm into the class tab (just above the item tabs)

Put those one after the other - 1. 'Do sweep' checkbox instead of 'No measurement' - 2. 'Run script before sweep step' → 'Run script before each measurement' - 3. 'Run script' button

- ??? use try-except-else (i.e. reduce try class)

- When there's time, make a clear import dependency graph and redo it

conventions

- 80 chars (not strictly enforced) - line break → comma (in dicts) - when in question, more whitespaces - ' for keys, “ for messages - from m import f (in case only f is used here. otherwise, import all of m) - naming vars with 4 chars followed by underlines and new 4 chars, e.g. sour_freq, VNA__freq - one char typing annotation possible, e.g. s_info_line for a string

todo

sci

Abbreviations

DSP … Digital signal processing (Wikipedia: Digital signal processing)

People

Reference

Link to graph
Log In
Improvements of the human condition