Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugins/Bpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def write_lut_method(self,attr):

else:
PyTango.Except.throw_exception('WrongData',\
f'Wrong value lut_method: {data}, use log or linear instead',
'Wrong value lut_method: {data}, use log or linear instead'.format(data=data),
'LimaCCD Class')


Expand Down Expand Up @@ -448,12 +448,12 @@ def write_min_max(self, attr):

if data[0] > data[1]:
PyTango.Except.throw_exception('WrongData',\
f'Wrong values min_max: {data}, max < min',
'Wrong values min_max: {data}, max < min'.format(data=data),
'LimaCCD Class')

if data[0] > max or data[1] > max:
PyTango.Except.throw_exception('WrongData',\
f'Wrong value min_max: {data}, out of range {range}',
'Wrong value min_max: {data}, out of range {range}'.format(data=data, range=range),
'LimaCCD Class'
)
self.min_max[0] = data[0]
Expand Down