Manually convert most remaining format statements
%d accepts floats and other things, so manual fixes are needed after conversion. After flynt -ll 2000 --aggressive, each was manually checked if the casts with int() are needed. Two statements are still missing in ls370res Change-Id: I2651ddbe60695aa19582882a97d0f71bcb05c1ef Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/30901 Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de> Reviewed-by: Alexander Zaft <a.zaft@fz-juelich.de>
This commit is contained in:
@ -59,11 +59,11 @@ class Ls370Sim(Communicator):
|
||||
def simulate(self):
|
||||
# not really a simulation. just for testing RDGST
|
||||
for channel in self.CHANNELS:
|
||||
_, _, _, _, excoff = self._data['RDGRNG?%d' % channel].split(',')
|
||||
_, _, _, _, excoff = self._data[f'RDGRNG?{channel}'].split(',')
|
||||
if excoff == '1':
|
||||
self._data['RDGST?%d' % channel] = '6'
|
||||
self._data[f'RDGST?{channel}'] = '6'
|
||||
else:
|
||||
self._data['RDGST?%d' % channel] = '0'
|
||||
self._data[f'RDGST?{channel}'] = '0'
|
||||
|
||||
def communicate(self, command):
|
||||
self.comLog(f'> {command}')
|
||||
|
Reference in New Issue
Block a user