Skip to content
Snippets Groups Projects
Commit aa9f09bc authored by Taya Snijder's avatar Taya Snijder
Browse files

renamed class

parent f9c1270d
No related branches found
No related tags found
1 merge request!457Resolve L2SS-825 "Start an observation"
...@@ -28,7 +28,7 @@ logger = logging.getLogger() ...@@ -28,7 +28,7 @@ logger = logging.getLogger()
__all__ = ["ObservationControl", "main"] __all__ = ["ObservationControl", "main"]
class obs(object): class observation_wrapper(object):
""" This class provides a pythonic interface to the ObservationControl and Observation devices on a station. """ """ This class provides a pythonic interface to the ObservationControl and Observation devices on a station. """
def __init__(self, specification: str, host: str = "localhost:10000"): def __init__(self, specification: str, host: str = "localhost:10000"):
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
from tangostationcontrol.test.devices.test_observation_base import TestObservationBase from tangostationcontrol.test.devices.test_observation_base import TestObservationBase
from tangostationcontrol.integration_test import base from tangostationcontrol.integration_test import base
from tangostationcontrol.devices.observation_control import obs from tangostationcontrol.devices.observation_control import observation_wrapper
from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy
import numpy import numpy
...@@ -102,12 +102,12 @@ class TestObservation(base.IntegrationTestCase): ...@@ -102,12 +102,12 @@ class TestObservation(base.IntegrationTestCase):
return tilebeam_proxy return tilebeam_proxy
def test_observation(self): def test_observation_wrapper(self):
"""Test of the obs class basic functionality""" """Test of the observation_wrapper class basic functionality"""
host = ApiUtil.get_env_var("TANGO_HOST") host = ApiUtil.get_env_var("TANGO_HOST")
observation = obs(specification=TestObservationBase.VALID_JSON, host=host) observation = observation_wrapper(specification=TestObservationBase.VALID_JSON, host=host)
# Assert the observation is running after starting it # Assert the observation is running after starting it
observation.start() observation.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment