diff --git a/tangostationcontrol/tangostationcontrol/devices/beam.py b/tangostationcontrol/tangostationcontrol/devices/beam.py index 1711a8a89f9db0e73cc4bf2fd38e81a7a95ded01..bbcea5f91619808495bef918deb42e6b04f0c1ed 100644 --- a/tangostationcontrol/tangostationcontrol/devices/beam.py +++ b/tangostationcontrol/tangostationcontrol/devices/beam.py @@ -8,8 +8,10 @@ """ # PyTango imports +from tango.server import attribute from tango import AttrWriteType import numpy +import pathlib # Additional import from tangostationcontrol.devices.device_decorators import * @@ -31,7 +33,9 @@ class Beam(lofar_device): # Attributes # ---------- - pass + # Directory where the casacore measures that we use, reside. We configure ~/.casarc to + # use /opt/IERS/current, but that is a symlink, so resolve it to get the actual location. + measures_directory_R = attribute(dtype=str, access=AttrWriteType.READ, fget=lambda self: str(pathlib.Path("/opt/IERS/current").resolve())) # -------- # overloaded functions