mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 17:18:00 +02:00
found bug needed to refresh member variables
Some checks failed
CMake / Configure and build using cmake (push) Failing after 9s
Some checks failed
CMake / Configure and build using cmake (push) Failing after 9s
This commit is contained in:
@ -113,7 +113,6 @@ class SignalsTab(QtWidgets.QWidget):
|
|||||||
if not isPlottedArray[i]:
|
if not isPlottedArray[i]:
|
||||||
offset += nbitsPerDBit
|
offset += nbitsPerDBit
|
||||||
arr[idx, :] = np.nan
|
arr[idx, :] = np.nan
|
||||||
|
|
||||||
continue
|
continue
|
||||||
for iSample in range(dSamples):
|
for iSample in range(dSamples):
|
||||||
# all samples for digital bit together from slsReceiver
|
# all samples for digital bit together from slsReceiver
|
||||||
@ -128,10 +127,11 @@ class SignalsTab(QtWidgets.QWidget):
|
|||||||
arr = np.empty((dSamples, len(rx_dbitlist)), dtype=np.uint8) #store all samples
|
arr = np.empty((dSamples, len(rx_dbitlist)), dtype=np.uint8) #store all samples
|
||||||
for iSample in range(dSamples):
|
for iSample in range(dSamples):
|
||||||
offset = nbitsPerSample * iSample
|
offset = nbitsPerSample * iSample
|
||||||
for idx, i in enumerate(rx_dbitlist): #TODO i think ctBitlist is reordered CHECK!!!
|
for idx, i in enumerate(rx_dbitlist):
|
||||||
if not isPlottedArray[i]:
|
if not isPlottedArray[i]:
|
||||||
offset += 1
|
offset += 1
|
||||||
arr[iSample, idx] = np.nan
|
arr[iSample, idx] = np.nan
|
||||||
|
|
||||||
index = int(offset/8)
|
index = int(offset/8)
|
||||||
iBit = idx % 8
|
iBit = idx % 8
|
||||||
bit = (digital_array[index] >> iBit) & 1
|
bit = (digital_array[index] >> iBit) & 1
|
||||||
@ -147,6 +147,8 @@ class SignalsTab(QtWidgets.QWidget):
|
|||||||
#dsamples: digital samples
|
#dsamples: digital samples
|
||||||
#asamples: analog samples
|
#asamples: analog samples
|
||||||
|
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
waveforms = {}
|
waveforms = {}
|
||||||
isPlottedArray = {i: getattr(self.view, f"checkBoxBIT{i}Plot").isChecked() for i in self.rx_dbitlist}
|
isPlottedArray = {i: getattr(self.view, f"checkBoxBIT{i}Plot").isChecked() for i in self.rx_dbitlist}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user