Updated scrips

Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
2025-07-17 13:10:54 +01:00
parent eae57fad07
commit 653397c9c8
3 changed files with 11 additions and 7 deletions

View File

@@ -70,15 +70,17 @@ class ClientMdsThin():
adc_bits = data[:, 0].astype(int)
adc_bits &= 0x3
ch_trg = np.zeros(adc_bits.shape, dtype='int')
ch_trg[adc_bits==1] = 2
ch_trg[adc_bits==2] = 1
ch_trg[adc_bits==3] = 3
ch_trg[adc_bits == 1] = 2 # trigger bits
ch_trg[adc_bits == 2] = 1
ch_trg[adc_bits == 3] = 3
# breakpoint()
"""
for i, a in enumerate(adc_bits):
if a == 1:
print(f"found Trigger in {i}")
elif a == 3:
print(f"found Trigger in {i}")
"""
self.choppTrigg = ch_trg
def calcEoWo(self):