Menu

#38 TaurusImageDialog bug

unassigned
waiting
None
bug
2016-01-29
2014-02-14
Nexeya
No

Calling setModel on a TaurusImageDialog raises an exception if the device is not started.

taurus\qt\qtgui\extra_guiqwt\builder.py

Lines 134 -137:

if Attribute(taurusmodel).read().type == DevEncoded:
image = TaurusEncodedImageItem(param)
else:
image = TaurusImageItem(param)

The line responsible for this behavior is line 134. It tries to read the attribute and fails.
I don’t know if there’s a different way to check the attribute type.

Discussion

  • Carlos Pascual

    Carlos Pascual - 2014-02-15
    • assigned_to: Carlos Pascual
    • Category: pool --> taurus-qt
     
  • Carlos Pascual

    Carlos Pascual - 2014-02-15

    You are right.

    We will probably have to handle this case and redo this check when we get an event that the Attribute is alive.

     

    Last edit: Carlos Pascual 2014-02-15
  • Carlos Pascual

    Carlos Pascual - 2014-07-08
    • Milestone: Jul14 --> Jan15
     
  • Carlos Pascual

    Carlos Pascual - 2015-02-03
    • Milestone: Jan15 --> unassigned
     
  • Tiago Coutinho

    Tiago Coutinho - 2015-03-30

    Ticket moved from /p/sardana/tickets/93/

    Can't be converted:

    • _category: taurus-qt
     
  • Carlos Pascual

    Carlos Pascual - 2016-01-19
    • Category: unassigned --> Jan16,
     
  • Carlos Pascual

    Carlos Pascual - 2016-01-29
    • Milestone: Jan16 --> unassigned