BCDA-APS / adl2pydm

Convert MEDM's .adl files to PyDM's .ui format
Other
0 stars 4 forks source link

valuator: error when precision written as float #36

Closed prjemian closed 4 years ago

prjemian commented 4 years ago

Processing this file: testDisplay.adl, this error stops the PyDM screen from displaying:

[2019-11-18 12:02:13,098] [ERROR   ] - Cannot open file: '/tmp/testDisplay.ui'. Reason: 'invalid literal for int() with base 10: '1.000000''.

The precision of the valuator (slider) widget is written as a float.

      <property name="precision">
        <number>1.000000</number>
      </property>
prjemian commented 4 years ago

Other widgets allow precision expressed as floating-point but slider requires integer.

prjemian commented 4 years ago

Er, that's not how the precision property is used. Don't write it until we figure that out. In the designer, the precision property defaults as int (value: 0) with arrows to increase/decrease. When pressed, the value returns back to 0.

Need to figure out how to control the slider widget's scale.

prjemian commented 4 years ago

Commit e815538 should close this (by not writing the precision property at this time).