Commit ada9e9a2 authored by Valentin Valls's avatar Valentin Valls
Browse files

Clean up

parent fcdf18e2
......@@ -127,9 +127,9 @@ class Simulator(PyTango.Device_4Impl):
if self.peak_angles:
peak_angles = self.peak_angles
if type(peak_angles) == str:
if isinstance(peak_angles, str):
peak_angles = peak_angles.split(',')
if type(peak_angles[0]) == str:
if isinstance(peak_angles[0], str):
peak_angles = map(float, peak_angles)
self._SimuCamera.getFrameGetter().setPeakAngles(peak_angles)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment