######## from IV_Class import IV_Response, kwargs_IV_Response_rawData from Mixer import Mixer, kwargs_Mixer_rawData from plotxy import plot, plotcomplex import matplotlib.pylab as plt import numpy as np kwargs_IV_Response_rawData['skip_IV_simulation'] = True #this is due to a bug print('Initialise both IV curves with user defined offset corrections') kwargs_IV_Response_rawData['fixedOffset'] = [-1.351, -3.59] Unpumped = IV_Response('DummyData/DoubleJunction/Unpumped.csv', **kwargs_IV_Response_rawData) kwargs_IV_Response_rawData['fixedOffset'] = [-1.362, -4.5] Pumped = IV_Response('DummyData/DoubleJunction/Pumped.csv', **kwargs_IV_Response_rawData) print('Initialise Mixer.') kwargs_Mixer_rawData['skip_admittance_recovery'] = True kwargs_Mixer_rawData['fLO'] = 831.6e9 M = Mixer(Unpumped, Pumped, **kwargs_Mixer_rawData) print('Select the voltage range for the photon step.') vrange = Pumped.binedIVData[ 0, np.logical_and(Pumped.binedIVData[0] > 2, Pumped.binedIVData[0] < 2.5)] M.costLinearisation(vrange) M.doubleJunction(vrange)