Skip to content
Snippets Groups Projects

L2SS-680: Add empty PDU device

Merged Corné Lukken requested to merge L2SS-680 into master

Closes L2SS-680

Edited by Jan David Mol

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Jan David Mol approved this merge request

    approved this merge request

  • Corné Lukken added 58 commits

    added 58 commits

    Compare with previous version

  • Corné Lukken changed the description

    changed the description

  • Corné Lukken added 1 commit

    added 1 commit

    Compare with previous version

  • Corné Lukken marked this merge request as draft

    marked this merge request as draft

  • Do not merge:

    tangostationcontrol.integration_test.default.devices.test_device_recv.TestDeviceRECV.test_device_read_all_attributes
    --------------------------------------------------------------------------------------------------------------------
    Captured traceback:
    ~~~~~~~~~~~~~~~~~~~
        Traceback (most recent call last):
          File "/opt/lofar/tango/tangostationcontrol/tangostationcontrol/integration_test/default/devices/base.py", line 88, in test_device_read_all_attributes
        _ = self.proxy.read_attribute(attribute_name).value
          File "/usr/local/lib/python3.7/dist-packages/tango/green.py", line 195, in greener
        return executor.run(fn, args, kwargs, wait=wait, timeout=timeout)
          File "/usr/local/lib/python3.7/dist-packages/tango/green.py", line 109, in run
        return fn(*args, **kwargs)
          File "/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py", line 441, in __DeviceProxy__read_attribute
        return __check_read_attribute(self._read_attribute(value, extract_as))
          File "/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py", line 157, in __check_read_attribute
        raise DevFailed(*dev_attr.get_err_stack())
        PyTango.DevFailed: DevFailed[
    DevError[
        desc = ValueError: cannot reshape array of size 1 into shape (3,)
               
      origin = Traceback (most recent call last):
      File "/usr/local/lib/python3.7/dist-packages/tango/server.py", line 136, in read_attr
        ret = worker.execute(read_method, self)
      File "/usr/local/lib/python3.7/dist-packages/tango/green.py", line 98, in execute
        return fn(*args, **kwargs)
      File "/usr/local/lib/python3.7/dist-packages/tangostationcontrol/devices/recv.py", line 252, in read_Antenna_Field_Reference_ITRF_R
        ETRS_coordinates = numpy.array(self.Antenna_Field_Reference_ETRS).reshape(3)
    ValueError: cannot reshape array of size 1 into shape (3,)
      reason = PyDs_PythonError
    severity = ERR]
    DevError[
        desc = Failed to read_attribute on device stat/recv/1, attribute Antenna_Field_Reference_ITRF_R
      origin = DeviceProxy::read_attribute()
      reason = API_AttributeFailed
    severity = ERR]
    ]
        
    The above exception was the direct cause of the following exception:
        Traceback (most recent call last):
          File "/opt/lofar/tango/tangostationcontrol/tangostationcontrol/integration_test/default/devices/base.py", line 90, in test_device_read_all_attributes
        raise AssertionError(f"Could not read attribute {attribute_name} from device {self.name}") from e
        AssertionError: Could not read attribute Antenna_Field_Reference_ITRF_R from device STAT/RECV/1
    tangostationcontrol.integration_test.default.devices.test_device_sdp.TestDeviceSDP.test_device_read_all_attributes
    ------------------------------------------------------------------------------------------------------------------
    Captured traceback:
    ~~~~~~~~~~~~~~~~~~~
        Traceback (most recent call last):
          File "/opt/lofar/tango/tangostationcontrol/tangostationcontrol/integration_test/default/devices/base.py", line 88, in test_device_read_all_attributes
        _ = self.proxy.read_attribute(attribute_name).value
          File "/usr/local/lib/python3.7/dist-packages/tango/green.py", line 195, in greener
        return executor.run(fn, args, kwargs, wait=wait, timeout=timeout)
          File "/usr/local/lib/python3.7/dist-packages/tango/green.py", line 109, in run
        return fn(*args, **kwargs)
          File "/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py", line 441, in __DeviceProxy__read_attribute
        return __check_read_attribute(self._read_attribute(value, extract_as))
          File "/usr/local/lib/python3.7/dist-packages/tango/device_proxy.py", line 157, in __check_read_attribute
        raise DevFailed(*dev_attr.get_err_stack())
        PyTango.DevFailed: DevFailed[
    DevError[
        desc = Read value for attribute FPGA_signal_input_nof_blocks_R has not been updated
      origin = Device_3Impl::read_attributes_no_except
      reason = API_AttrValueNotSet
    severity = ERR]
    DevError[
        desc = Failed to read_attribute on device stat/sdp/1, attribute FPGA_signal_input_nof_blocks_R
      origin = DeviceProxy::read_attribute()
      reason = API_AttributeFailed
    severity = ERR]
    ]
    Edited by Corné Lukken
  • These two are fixed on master now.

  • Jan David Mol added 31 commits

    added 31 commits

    Compare with previous version

  • rebased. lets see.

  • Jan David Mol marked this merge request as ready

    marked this merge request as ready

  • build is clean. merging.

  • merged

  • Jan David Mol mentioned in commit a9e44401

    mentioned in commit a9e44401

Please register or sign in to reply
Loading