Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Case sensitivity error when subscribing to a change event #350

@gcerretani

Description

@gcerretani

When I subscribe to a change event, in the first event received at the subscription time the attr_value.name value has the right case sensitivity, as it was in PyTango 8. Then, the following change events have that field lower cased.

In the PERIODIC_EVENT, that field is always lower cased. It would be nice to get the not lowered name, as in PyTango 8.

Example:

  • first event:
EventData[
     attr_name = 'tango://...:20000/satserver/lab/1/g2'
    attr_value = DeviceAttribute(data_format = tango._tango.AttrDataFormat.SCALAR, dim_x = 1, dim_y = 0, has_failed = False, is_empty = False, name = 'G2', nb_read = 1, nb_written = 1, quality = tango._tango.AttrQuality.ATTR_VALID, r_dimension = AttributeDimension(dim_x = 1, dim_y = 0), time = TimeVal(tv_nsec = 0, tv_sec = 1484308260, tv_usec = 881227), type = tango._tango.CmdArgType.DevDouble, value = 8.0, w_dim_x = 1, w_dim_y = 0, w_dimension = AttributeDimension(dim_x = 1, dim_y = 0), w_value = 0.0)
        device = SatServer(satserver/lab/1)
           err = False
        errors = ()
         event = 'change'
reception_date = TimeVal(tv_nsec = 0, tv_sec = 1484308261, tv_usec = 822368)]
  • standard event:
EventData[
     attr_name = 'tango://...:20000/satserver/lab/1/g2'
    attr_value = DeviceAttribute(data_format = tango._tango.AttrDataFormat.SCALAR, dim_x = 1, dim_y = 0, has_failed = False, is_empty = False, name = 'g2', nb_read = 1, nb_written = 1, quality = tango._tango.AttrQuality.ATTR_VALID, r_dimension = AttributeDimension(dim_x = 1, dim_y = 0), time = TimeVal(tv_nsec = 0, tv_sec = 1484308266, tv_usec = 881001), type = tango._tango.CmdArgType.DevDouble, value = 7.96219999999992, w_dim_x = 1, w_dim_y = 0, w_dimension = AttributeDimension(dim_x = 1, dim_y = 0), w_value = 7.0)
        device = SatServer(satserver/lab/1)
           err = False
        errors = ()
         event = 'change'
reception_date = TimeVal(tv_nsec = 0, tv_sec = 1484308266, tv_usec = 929997)]

The problem seems related to the C++ side of the client. More information are found in the bug #87 closed in the PyTango repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions