DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
Namespaces | Functions | Variables
photon_statistics.py File Reference

Namespaces

namespace  photon_statistics
 

Functions

def photon_statistics.update_fn ()
 
def photon_statistics.periodic_callback_fn (period_ms=measurement_sampling_delay)
 

Variables

 photon_statistics.name_ = sys.argv[1]
 
 photon_statistics.config = json.load(f)
 
list photon_statistics.multitau_param_set = [config['LinCorrs'], config['SeriesSize'], config['BinRatio']]
 
 photon_statistics.this_channel_size = multitau.channel_size(*multitau_param_set)
 
int photon_statistics.byte_size = 4
 
tuple photon_statistics.total_struct_size
 
bool photon_statistics.stop_code_asserted = False
 
int photon_statistics.update_id = 0
 
list photon_statistics.openfilelist = []
 
string photon_statistics.parent_dir = "./runs/"
 
string photon_statistics.DATASEP = ','
 
 photon_statistics.now_tmp = time.perf_counter()
 
 photon_statistics.update_time_start = now_tmp
 
 photon_statistics.update_time_stop = now_tmp
 
 photon_statistics.measure_clock_start = now_tmp
 
 photon_statistics.measure_clock_stop = now_tmp
 
 photon_statistics.x_tau_values = multitau.x_tics(*multitau_param_set)
 
 photon_statistics.normalizer = Normalizer(*multitau_param_set)
 
tuple photon_statistics.norm_mode = ("no" * (not config["EnablePointsNorm"])) + ("points" * (not config["EnableMeanNorm"]) * config["EnablePointsNorm"]) + ("mean" * config["EnableMeanNorm"] * config["EnablePointsNorm"])
 
list photon_statistics.norm_args = []
 
 photon_statistics.struct_rep = StructRepresentation(config)
 
 photon_statistics.time_x = deque(maxlen = 100)
 
 photon_statistics.count_rate_y = deque(maxlen = 100)
 
 photon_statistics.mean_int_y = deque(maxlen = 100)
 
 photon_statistics.pf_serial_y = deque(maxlen = 100)
 
 photon_statistics.pf_acf_y = deque(maxlen = 100)
 
string photon_statistics.y_file_name = f"{name_}_y.dat"
 
string photon_statistics.x_file_name = f"{name_}_x_taus.dat"
 
 photon_statistics.fmt
 
 photon_statistics.newline
 
 photon_statistics.acffile = open(os.path.join(parent_dir, y_file_name), 'a')
 
string photon_statistics.count_file_name = f"{name_}_countrate.dat"
 
 photon_statistics.countratefile = open(os.path.join(parent_dir, count_file_name), 'w')
 
string photon_statistics.mean_file_name = f"{name_}_meanintensity.dat"
 
 photon_statistics.meanfile = open(os.path.join(parent_dir, mean_file_name), 'w')
 
 photon_statistics.live_graph = LiveGraph(xRange=x_tau_values[-1], port=config['Port'], title="Auto-Correlation Function", x_label = "Lag", y_label="ACF", x_units="Tau", y_units="G(Tau)", config=config )
 
 photon_statistics.title
 
 photon_statistics.row
 
 photon_statistics.col
 
 photon_statistics.rowspan
 
 photon_statistics.pen
 
 photon_statistics.symbolBrush
 
 photon_statistics.symbolSize
 
 photon_statistics.port = Serial(port=config["Port"], baudrate=config["Baud"], timeout=None)
 
 photon_statistics.measurement_sampling_delay = int(config['SamplingDelay_ms']/2)
 
 photon_statistics.measurement_thread = QtCore.QTimer()
 
tuple photon_statistics.received_data_estimate = total_struct_size * update_id