0% found this document useful (0 votes)
14 views28 pages

19 20DecTestPICMIC

Uploaded by

Jose Alberto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views28 pages

19 20DecTestPICMIC

Uploaded by

Jose Alberto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

In [188… import numpy as np

import pandas as pd
import matplotlib.pyplot as plt
#import seaborn as sns

def addColumns(mypd, vrefp=0, vrefn=0, vbn=62, vbp=81, chip=0, run=0, pixel=


mypd['Chip'] = chip
mypd['Pixel'] = pixel
mypd['Run'] = run
mypd['VrefP'] = vrefp
mypd['VrefN'] = vrefn
mypd['VBN'] = vbn
mypd['VBP'] = vbp
mypd['Iadj']= iadj

def cleanPanda(mypd) :
my_df = mypd.copy()
my_df = my_df.dropna(axis=1) # deleting columns with NAN values
# reading values of the electronic row and column and add it to the pand
##my_df[my_df.iloc[0].at[0]+'-'+my_df.iloc[1].at[0]] = my_df.iloc[0].at[
my_way = str(int(my_df.iloc[0].at[1]))+'-'+str(int(my_df.iloc[1].at[1]))
#print(my_way)
#my_df = my_df.astype({0:'float',1:'float'})
my_df.rename(columns = {0:'VBN_adj',1:'Eff_trig_'+my_way}, inplace=True)
#my_df = my_df.astype({0:'float',1:'float'})
my_df = my_df.tail(-2) # to delete the two first rows
#my_df = my_df.astype({'VBN_adj':'float','Eff_trig_'+my_way:'float'})
my_df['VBN_adj'] = my_df['VBN_adj'].astype(int)
return my_df

def cleanPandaPicmic(mypd) :
my_df = mypd.copy()
my_df = my_df.dropna(axis=1)
dim_data = len(my_df.columns)

mylist = ['VBN_adj']
for i in range(1,dim_data) :
my_pixel = 'R'+str(int(my_df.iloc[0].at[i]))+'-C'+str(int(my_df.iloc
##print(my_pixel,i)
temp = 'VBN_adj' if i == 0 else 'Eff_'+my_pixel
mylist.append(temp)
##print(my_pixel,i,temp)

##print(mylist)
my_dict = {idx : mylist[idx] for idx in range(0,dim_data)}
##print(my_dict)

my_df.rename(columns = my_dict, inplace=True) # rename columns 0 and 1


#my_df = my_df.astype({0:'float',1:'float'})
my_df = my_df.tail(-2) # to delete the two first rows
#my_df = my_df.astype({'VBN_adj':'float','Eff_trig_'+my_way:'float'})
my_df['VBN_adj'] = my_df['VBN_adj'].astype(int)
return my_df
def createPandaFromCSV(myPath = '/home/habreu/WORK/env_conda/data-picmic/Pul
mypd = pd.read_csv(myPath, delimiter=';', header=None)
my_df = mypd.copy()
my_df = my_df.dropna(axis=1) # deleting columns with NAN values
# reading values of the electronic row and column and add it to the pand
my_df[my_df.iloc[0].at[0]+'-'+my_df.iloc[1].at[0]] = my_df.iloc[0].at[1]
my_df = my_df.tail(-2) # to delete the two first rows
my_way = str(my_df.iloc[0].at[1])+'-'+str(my_df.iloc[1].at[1])
my_df.rename(columns = {0:'VBN_adj',1:'Eff_trig_'+str(my_df.iloc[0].at[1
my_df = my_df.tail(-2) # to delete the two first rows
return my_df

In [55]: # create and clean panda for sanity check


df_R425_0 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing_19D
df_R425_0 = cleanPanda(df_R425_0)
addColumns(df_R425_0, vrefp=50, vrefn=106, chip=5, run=0, pixel=425)
#df_R425_0['VBN_adj'] = df_R425_0['VBN_adj'].astype(float)
#df_R425_0['Eff_trig_103-35'] = df_R425_0['Eff_trig_103-35'].astype(float)
df_R425_0.head()

Out[55]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 100 0.0 5 425 0 50 106 62 81 1

3 101 0.0 5 425 0 50 106 62 81 1

4 102 0.0 5 425 0 50 106 62 81 1

5 103 0.0 5 425 0 50 106 62 81 1

6 104 0.0 5 425 0 50 106 62 81 1

In [50]: #df_R425_0.info()

In [56]: # create abd clean panda run1


df_R425_1 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing_19D
df_R425_1 = cleanPanda(df_R425_1)
addColumns(df_R425_1, vrefp=50, vrefn=106, chip=5, run=1, pixel=425)

df_R425_1.head()

Out[56]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 150 0.0 5 425 1 50 106 62 81 1

3 151 0.0 5 425 1 50 106 62 81 1

4 152 0.0 5 425 1 50 106 62 81 1

5 153 0.0 5 425 1 50 106 62 81 1

6 154 0.0 5 425 1 50 106 62 81 1

In [52]: # create and clean panda run2


df_R425_2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing_19D
df_R425_2 = cleanPanda(df_R425_2)
addColumns(df_R425_2, vrefp=50, vrefn=106, chip=5, run=2, pixel=425)
#df_R425_2.set_index('VBN_adj')
df_R425_2.head()

103-35
Out[52]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 150 0.0 5 425 2 50 106 62 81 1

3 151 0.0 5 425 2 50 106 62 81 1

4 152 0.0 5 425 2 50 106 62 81 1

5 153 0.0 5 425 2 50 106 62 81 1

6 154 0.0 5 425 2 50 106 62 81 1

1) Sanity Check
In [229… plt.plot(df_R425_0['VBN_adj'],df_R425_0['Eff_trig_103-35'], color ='blue', l
plt.plot(df_R425_1['VBN_adj'],df_R425_1["Eff_trig_103-35"], color ='red', la
plt.plot(df_R425_2['VBN_adj'],df_R425_2["Eff_trig_103-35"], color ='green',

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for indiviual pixel: R425")

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

plt.xlim([150,175])

plt.show()
- red and green curves seems consistent. However, I don't
remember what happened in the run 0 (i didn't like this small
discontuinty around the 60%. To be checked and to understand
this shift in x6[udac] . Paramaters are the same in all runs.

2) Test as a function of the I_adj parameter


In [70]: # Iadj == 7
df_R425_iadj7 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing
df_R425_iadj7 = cleanPanda(df_R425_iadj7)
addColumns(df_R425_iadj7, vrefp=50, vrefn=106, chip=5, run=1, pixel=425)

df_R425_iadj7.head()

Out[70]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 70 0.0 5 425 1 50 106 62 81 1

3 71 0.0 5 425 1 50 106 62 81 1

4 72 0.0 5 425 1 50 106 62 81 1

5 73 0.0 5 425 1 50 106 62 81 1

6 74 0.0 5 425 1 50 106 62 81 1


In [82]: # Iadj == 3
df_R425_iadj3 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing
df_R425_iadj3 = cleanPanda(df_R425_iadj3)
addColumns(df_R425_iadj3, vrefp=50, vrefn=106, chip=5, run=1, pixel=425)

df_R425_iadj3.head()

Out[82]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 100 0.0 5 425 1 50 106 62 81 1

3 101 0.0 5 425 1 50 106 62 81 1

4 102 0.0 5 425 1 50 106 62 81 1

5 103 0.0 5 425 1 50 106 62 81 1

6 104 0.0 5 425 1 50 106 62 81 1

In [84]: # Iadj == 1
df_R425_iadj1 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing
df_R425_iadj1 = cleanPanda(df_R425_iadj1)
addColumns(df_R425_iadj1, vrefp=50, vrefn=106, chip=5, run=1, pixel=425)

df_R425_iadj1.head()

Out[84]: VBN_adj Eff_trig_103-35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 150 0.0 5 425 1 50 106 62 81 1

3 151 0.0 5 425 1 50 106 62 81 1

4 152 0.0 5 425 1 50 106 62 81 1

5 153 0.0 5 425 1 50 106 62 81 1

6 154 0.0 5 425 1 50 106 62 81 1

In [107… # Iadj == 6
df_R425_iadj6 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing
df_R425_iadj6 = cleanPanda(df_R425_iadj6)
addColumns(df_R425_iadj1, vrefp=50, vrefn=106, chip=5, run=1, pixel=425)

df_R425_iadj6.head()

Out[107]: VBN_adj Eff_trig_103-35

2 180 0.000

3 181 0.000

4 182 0.001

5 183 0.014

6 184 0.033

In [ ]:

In [ ]:
In [ ]:

In [109… plt.plot(df_R425_iadj7['VBN_adj'],df_R425_iadj7['Eff_trig_103-35'], color ='


plt.plot(df_R425_iadj6['VBN_adj'],df_R425_iadj6['Eff_trig_103-35'], color ='
plt.plot(df_R425_iadj3['VBN_adj'],df_R425_iadj3['Eff_trig_103-35'], color ='
plt.plot(df_R425_iadj1['VBN_adj'],df_R425_iadj1['Eff_trig_103-35'], color ='
plt.plot(df_R425_2['VBN_adj'],df_R425_2["Eff_trig_103-35"], color ='green',
#plt.plot(df_R425_1['VBN_adj'],df_R425_1["Eff_trig_103-35"], color ='red', l
#plt.plot(df_R425_2['VBN_adj'],df_R425_2["Eff_trig_103-35"], color ='green',

plt.title("PICMIC: S-Curve for indiviual pixel: R425 as a function of Iadj")

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,170])

plt.show()

- curve are shifted to the left as Iadj value increases

- green curves (Iadj==1) in agreement +/- 1[udac]


- something bad for Iadj==6 (in general, even numbers) to
understand!. Looks some artefact related to the normalization in
even numbers(bits)??. it will be seen again later during XT
studies.
In [185… dict_Iadj = { 7 : 92.5,
3 : 109.0,
1 : 161.5}

plt.plot(dict_Iadj.values(),dict_Iadj.keys(), marker="*")
plt.xlabel("VBN_adj [udac] - Inflection point at 50% by-eye")
plt.ylabel("Iadj [au]")

plt.title("PICMIC: Inflection point at 50% for an indiviual pixel: R425 as a


plt.show()

- Iadj=6, not took into account.

- A nicel decreasing trend

- to need to check at Iadj == 5 to conclude better and also for


the other values.

3) Tests as a function of the I_adj parameter


with charge injection
- VrefN == 120 ( previously was 106), it was changed in order to
have the inflection point in all the ways at the same VBN_adj
spectrum
In [190… df_all_pulse_0 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsin

In [191… df_all_pulse_0 = cleanPandaPicmic(df_all_pulse_0)


addColumns(df_all_pulse_0, vrefp=50, vrefn=120, chip=5, run=1, pixel=456)

df_all_pulse_0.head()

Out[191]: Eff_R103- Eff_R68- Eff_R6-


VBN_adj Chip Pixel Run VrefP VrefN VBN VBP Iadj
C35 C28 C15

2 50 0.0 0.0 0.0 5 456 1 50 120 62 81 1

3 51 0.0 0.0 0.0 5 456 1 50 120 62 81 1

4 52 0.0 0.0 0.0 5 456 1 50 120 62 81 1

5 53 0.0 0.0 0.0 5 456 1 50 120 62 81 1

6 54 0.0 0.0 0.0 5 456 1 50 120 62 81 1

In [277… plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0['Eff_R103-C35'], color ='b


plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0['Eff_R68-C28'], color ='re
plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0["Eff_R6-C15"], color ='gre

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426. Run0. Inj. Disc-P3??

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
3.1) Run2 , Inj. Disc P1
In [195… df_all_pulse_2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsin
df_all_pulse_2.head()

Out[195]: 0 1 2 3

0 R 103.0 68.0 NaN

1 C 35.0 28.0 NaN

2 120 1.0 0.0 NaN

3 121 1.0 0.0 NaN

4 122 1.0 0.0 NaN

In [196… df_all_pulse_2 = cleanPandaPicmic(df_all_pulse_2)


addColumns(df_all_pulse_2, vrefp=50, vrefn=120, chip=5, run=1, pixel=456)

df_all_pulse_2.head()
Out[196]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 120 1.0 0.0 5 456 1 50 120 62 81 1

3 121 1.0 0.0 5 456 1 50 120 62 81 1

4 122 1.0 0.0 5 456 1 50 120 62 81 1

5 123 1.0 0.0 5 456 1 50 120 62 81 1

6 124 1.0 0.0 5 456 1 50 120 62 81 1

In [198… plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0['Eff_R103-C35'], color ='b


plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0['Eff_R68-C28'], color ='re
#plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0["Eff_R6-C15"], color ='gr

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426. Run2. Inj. Disc-P1??

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
3.2) injection single pixel R425
In [208… df_all_pulse_xt2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Puls
df_all_pulse_xt2 = cleanPandaPicmic(df_all_pulse_xt2)
addColumns(df_all_pulse_xt2, vrefp=50, vrefn=120, chip=5, run=2, pixel=425)

df_all_pulse_xt3 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Puls
df_all_pulse_xt3 = cleanPandaPicmic(df_all_pulse_xt3)
addColumns(df_all_pulse_xt3, vrefp=50, vrefn=120, chip=5, run=3, pixel=425)
df_all_pulse_xt2.head()

Out[208]: VBN_adj Eff_R103-C35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 120 1.0 5 425 2 50 120 62 81 1

3 121 1.0 5 425 2 50 120 62 81 1

4 122 1.0 5 425 2 50 120 62 81 1

5 123 1.0 5 425 2 50 120 62 81 1

6 124 1.0 5 425 2 50 120 62 81 1

In [209… df_all_pulse_xt3.head()
Out[209]: VBN_adj Eff_R103-C35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 100 0.0 5 425 3 50 120 62 81 1

3 101 0.0 5 425 3 50 120 62 81 1

4 102 0.0 5 425 3 50 120 62 81 1

5 103 0.0 5 425 3 50 120 62 81 1

6 104 0.0 5 425 3 50 120 62 81 1

In [221… plt.plot(df_all_pulse_xt2['VBN_adj'],df_all_pulse_xt2['Eff_R103-C35'], color


plt.plot(df_all_pulse_xt3['VBN_adj'],df_all_pulse_xt3['Eff_R103-C35'], color
#plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0["Eff_R6-C15"], color ='gr

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve: R425. Run1-2. Inj. Disc-P2??. 1.8Vpp")

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

Out[221]: <matplotlib.legend.Legend at 0x7fbcddad7a00>


3.2) injection in three pixels R424-426 all others
unmasked
In [222… df_all_pulse_xt4 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Puls
df_all_pulse_xt4 = cleanPandaPicmic(df_all_pulse_xt4)
addColumns(df_all_pulse_xt4, vrefp=50, vrefn=120, chip=5, run=2, pixel=456)
df_all_pulse_xt4.head()

Out[222]: Eff_R103- Eff_R68- Eff_R6-


VBN_adj Chip Pixel Run VrefP VrefN VBN VBP Iadj
C35 C28 C15

2 80 0.0 0.0 0.0 5 456 2 50 120 62 81 1

3 81 0.0 0.0 0.0 5 456 2 50 120 62 81 1

4 82 0.0 0.0 0.0 5 456 2 50 120 62 81 1

5 83 0.0 0.0 0.0 5 456 2 50 120 62 81 1

6 84 0.0 0.0 0.0 5 456 2 50 120 62 81 1

In [223… df_all_pulse_xt5 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Puls


df_all_pulse_xt5 = cleanPandaPicmic(df_all_pulse_xt5)
addColumns(df_all_pulse_xt5, vrefp=50, vrefn=120, chip=5, run=2, pixel=456)
df_all_pulse_xt5.head()
Out[223]: Eff_R103- Eff_R64- Eff_R99- Eff_R96- Eff_R68- Eff_R6-
VBN_adj Chip Pixel Run Vref
C35 C35 C35 C35 C28 C15

2 80 0.0 0.0 0.0 0.0 0.0 0.0 5 456 2 5

3 81 0.0 0.0 0.0 0.0 0.0 0.0 5 456 2 5

4 82 0.0 0.0 0.0 0.0 0.0 0.0 5 456 2 5

5 83 0.0 0.0 0.0 0.0 0.0 0.0 5 456 2 5

6 84 0.0 0.0 0.0 0.0 0.0 0.0 5 456 2 5

In [224… df_all_pulse_xt6 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Puls


df_all_pulse_xt6 = cleanPandaPicmic(df_all_pulse_xt6)
addColumns(df_all_pulse_xt6, vrefp=50, vrefn=120, chip=5, run=2, pixel=456)
df_all_pulse_xt6.head()

Out[224]: Eff_R103- Eff_R68- Eff_R64- Eff_R0-


VBN_adj Chip Pixel Run VrefP VrefN VBN VBP
C35 C28 C28 C28

2 80 0.0 0.0 0.0 0.0 5 456 2 50 120 62 8

3 81 0.0 0.0 0.0 0.0 5 456 2 50 120 62 8

4 82 0.0 0.0 0.0 0.0 5 456 2 50 120 62 8

5 83 0.0 0.0 0.0 0.0 5 456 2 50 120 62 8

6 84 0.0 0.0 0.0 0.0 5 456 2 50 120 62 8

In [225… plt.plot(df_all_pulse_xt4['VBN_adj'],df_all_pulse_xt4['Eff_R103-C35'], color


plt.plot(df_all_pulse_xt4['VBN_adj'],df_all_pulse_xt4['Eff_R68-C28'], color
plt.plot(df_all_pulse_xt4['VBN_adj'],df_all_pulse_xt4["Eff_R6-C15"], color =

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels and the rest unmasked: R424-R426

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
In [227… plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5['Eff_R103-C35'], color
plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5['Eff_R68-C28'], color
plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5["Eff_R6-C15"], color =
plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5['Eff_R64-C35'], color
plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5['Eff_R99-C35'], color
plt.plot(df_all_pulse_xt5['VBN_adj'],df_all_pulse_xt5["Eff_R96-C35"], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others unmask

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
In [228… plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R103-C35'], color
plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R68-C28'], color
plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color =

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others unmask

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
4) 20 Dec 2022 TESTS, come back to
VrefN=106. Charge Injection
4.1) single pixel R425, the rest masked
In [237… df_stab_425_0 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/Pulsing
df_stab_425_0 = cleanPandaPicmic(df_stab_425_0)
addColumns(df_stab_425_0, vrefp=50, vrefn=106, chip=5, run=0, pixel=425)
df_stab_425_0.head()

Out[237]: VBN_adj Eff_R103-C35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 106 0.0 5 425 0 50 106 62 81 1

3 107 0.0 5 425 0 50 106 62 81 1

4 108 0.0 5 425 0 50 106 62 81 1

5 109 0.0 5 425 0 50 106 62 81 1

6 110 0.0 5 425 0 50 106 62 81 1

In [238… df_stab_pulse_425_2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/P


df_stab_pulse_425_2 = cleanPandaPicmic(df_stab_pulse_425_2)
addColumns(df_stab_pulse_425_2, vrefp=50, vrefn=106, chip=5, run=0, pixel=42
df_stab_pulse_425_2.head()
Out[238]: VBN_adj Eff_R103-C35 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 150 0.0 5 425 0 50 106 62 81 1

3 151 0.0 5 425 0 50 106 62 81 1

4 152 0.0 5 425 0 50 106 62 81 1

5 153 0.0 5 425 0 50 106 62 81 1

6 154 0.0 5 425 0 50 106 62 81 1

In [ ]: df_stab_pulse_425_4 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmic/P
df_stab_pulse_425_4 = cleanPandaPicmic(df_stab_pulse_425_2)
addColumns(df_stab_pulse_425_2, vrefp=50, vrefn=106, chip=5, run=0, pixel=42
df_stab_pulse_425_2.head()

In [240… plt.plot(df_stab_425_0['VBN_adj'],df_stab_425_0['Eff_R103-C35'], color ='red


plt.plot(df_stab_pulse_425_2['VBN_adj'],df_stab_pulse_425_2['Eff_R103-C35'],
#plt.plot(df_all_pulse_0['VBN_adj'],df_all_pulse_0["Eff_R6-C15"], color ='gr

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve: R425. Run1-2. Inj. Disc-P2??. 1.8Vpp")

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

Out[240]: <matplotlib.legend.Legend at 0x7fbce06d7c10>


4.1) three pixels R424-426
In [246… df_stab_pulse_all_4_P2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi
df_stab_pulse_all_4_P2 = cleanPandaPicmic(df_stab_pulse_all_4_P2)
addColumns(df_stab_pulse_all_4_P2, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_4_P2.head()

Out[246]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 150 0.0 0.0 5 456 0 50 106 62 81 1

3 151 0.0 0.0 5 456 0 50 106 62 81 1

4 152 0.0 0.0 5 456 0 50 106 62 81 1

5 153 0.0 0.0 5 456 0 50 106 62 81 1

6 154 0.0 0.0 5 456 0 50 106 62 81 1

In [248… df_stab_pulse_all_5_P2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi


df_stab_pulse_all_5_P2 = cleanPandaPicmic(df_stab_pulse_all_5_P2)
addColumns(df_stab_pulse_all_5_P2, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_5_P2.head()
Out[248]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1

In [250… df_stab_pulse_all_6_P3 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi


df_stab_pulse_all_6_P3 = cleanPandaPicmic(df_stab_pulse_all_6_P3)
addColumns(df_stab_pulse_all_6_P3, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_6_P3.head()

Out[250]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1

In [259… df_stab_pulse_all_7_P1 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi


df_stab_pulse_all_7_P1 = cleanPandaPicmic(df_stab_pulse_all_7_P1)
addColumns(df_stab_pulse_all_7_P1, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_7_P1.head()

Out[259]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1

In [ ]:

In [ ]:

In [269… plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R103-
plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R68-C

plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R103-
plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R68-C
plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R103-
plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R68-C

plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R103-
plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R68-C

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()

In [278… plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R103-
#plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R68-
plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R103-
#plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R68-

plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R103-
#plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R68-

plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R103-
#plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R68-

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
In [279… #plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R103
plt.plot(df_stab_pulse_all_4_P2['VBN_adj'],df_stab_pulse_all_4_P2['Eff_R68-C

#plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R103
plt.plot(df_stab_pulse_all_7_P1['VBN_adj'],df_stab_pulse_all_7_P1['Eff_R68-C

#plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R103
plt.plot(df_stab_pulse_all_6_P3['VBN_adj'],df_stab_pulse_all_6_P3['Eff_R68-C

#plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R103
plt.plot(df_stab_pulse_all_5_P2['VBN_adj'],df_stab_pulse_all_5_P2['Eff_R68-C

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()
In [265… df_stab_pulse_all_8_P1 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi
df_stab_pulse_all_8_P1 = cleanPandaPicmic(df_stab_pulse_all_8_P1)
addColumns(df_stab_pulse_all_8_P1, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_8_P1.head()

Out[265]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1

In [266… df_stab_pulse_all_9_P1 = pd.read_csv('/home/habreu/WORK/env_conda/data-picmi


df_stab_pulse_all_9_P1 = cleanPandaPicmic(df_stab_pulse_all_9_P1)
addColumns(df_stab_pulse_all_9_P1, vrefp=50, vrefn=106, chip=5, run=0, pixel
df_stab_pulse_all_9_P1.head()

Out[266]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1


In [270… df_stab_pulse_all_10_P2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picm
df_stab_pulse_all_10_P2 = cleanPandaPicmic(df_stab_pulse_all_10_P2)
addColumns(df_stab_pulse_all_10_P2, vrefp=50, vrefn=106, chip=5, run=0, pixe
df_stab_pulse_all_10_P2.head()

Out[270]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.00 0.0 5 456 0 50 106 62 81 1

3 161 0.00 0.0 5 456 0 50 106 62 81 1

4 162 0.00 0.0 5 456 0 50 106 62 81 1

5 163 0.01 0.0 5 456 0 50 106 62 81 1

6 164 0.00 0.0 5 456 0 50 106 62 81 1

In [274… df_stab_pulse_all_11_P2 = pd.read_csv('/home/habreu/WORK/env_conda/data-picm


df_stab_pulse_all_11_P2 = cleanPandaPicmic(df_stab_pulse_all_11_P2)
addColumns(df_stab_pulse_all_11_P2, vrefp=50, vrefn=106, chip=5, run=0, pixe
df_stab_pulse_all_11_P2.head()

Out[274]: VBN_adj Eff_R103-C35 Eff_R68-C28 Chip Pixel Run VrefP VrefN VBN VBP Iadj

2 160 0.0 0.0 5 456 0 50 106 62 81 1

3 161 0.0 0.0 5 456 0 50 106 62 81 1

4 162 0.0 0.0 5 456 0 50 106 62 81 1

5 163 0.0 0.0 5 456 0 50 106 62 81 1

6 164 0.0 0.0 5 456 0 50 106 62 81 1

In [276… plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R103-
plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R68-C

plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R103-
plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R68-C

plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R10
plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R68

plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R10
plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R68

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked
plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()

In [280… plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R103-
#plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R68-

plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R103-
#plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R68-

plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R10
#plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R6

plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R10
#plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R6

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()

In [281… #plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R103
plt.plot(df_stab_pulse_all_8_P1['VBN_adj'],df_stab_pulse_all_8_P1['Eff_R68-C

#plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R103
plt.plot(df_stab_pulse_all_9_P1['VBN_adj'],df_stab_pulse_all_9_P1['Eff_R68-C

#plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R1
plt.plot(df_stab_pulse_all_10_P2['VBN_adj'],df_stab_pulse_all_10_P2['Eff_R68

#plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R1
plt.plot(df_stab_pulse_all_11_P2['VBN_adj'],df_stab_pulse_all_11_P2['Eff_R68

#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6["Eff_R64-C28"], color
#plt.plot(df_all_pulse_xt6['VBN_adj'],df_all_pulse_xt6['Eff_R0-C28'], color

# set x-axis label


#ax1.set_xlabel("VBN adj [udac]")
# set y-axis label
#ax1.set_ylabel("Percentage [%]")
##plt.yticks(range(0, 1))
plt.title("PICMIC: S-Curve for three pixels: R424-R426 and all others masked

plt.xlabel("VBN_adj [udac]")
plt.ylabel("Percentage [%]")
#plt.title("PICMIC")

plt.legend()

#plt.xlim([150,175])

plt.show()

In [ ]:

You might also like