Example #1
0
def configuring_sub(sdp_block, configure_file):
    update_scan_config_file(configure_file, sdp_block)
    config = load_config_from_file(configure_file)
    SubarrayNode = DeviceProxy('ska_mid/tm_subarray_node/1')
    SubarrayNode.Configure(config)
    LOGGER.info("Subarray obsState is: " + str(SubarrayNode.obsState))
    LOGGER.info('Invoked Configure on Subarray')
Example #2
0
def configure_sub():
    # resource('ska_low/tm_subarray_node/1').assert_attribute('State').equals('ON')
    configure_file = "resources/test_data/TMC_integration/mccs_configure.json"
    config = load_config_from_file(configure_file)
    SubarrayNodeLow = DeviceProxy("ska_low/tm_subarray_node/1")
    SubarrayNodeLow.Configure(config)
    LOGGER.info("Subarray obsState is: " + str(SubarrayNodeLow.obsState))
    LOGGER.info("Invoked Configure on Subarray")
Example #3
0
def configure_sub(sdp_block, configure_file):
    #resource('ska_mid/tm_subarray_node/1').assert_attribute('State').equals('ON')
    update_scan_config_file(configure_file, sdp_block)
    config = load_config_from_file(configure_file)
    SubarrayNode = DeviceProxy('ska_mid/tm_subarray_node/1')
    SubarrayNode.Configure(config)
    LOGGER.info("Subarray obsState is: " + str(SubarrayNode.obsState))
    LOGGER.info('Invoked Configure on Subarray')
 def configure_sub():
     configure1_file = "resources/test_data/TMC_integration/mccs_configure.json"
     config = load_config_from_file(configure1_file)
     LOGGER.info("Configuring a scan for subarray 1")
     fixture["state"] = "Subarray CONFIGURING"
     SubarrayNode = DeviceProxy("ska_low/tm_subarray_node/1")
     SubarrayNode.Configure(config)
     LOGGER.info("Invoked Configure on Subarray")
Example #5
0
def configure_sub():
    configure_file = download_test_data(
        "low_configure_v1.json", "skampi-test-data/tmc-integration/configure")
    config = load_config_from_file(configure_file)
    os.remove(configure_file)
    SubarrayNodeLow = DeviceProxy('ska_low/tm_subarray_node/1')
    SubarrayNodeLow.Configure(config)
    LOGGER.info("Subarray obsState is: " + str(SubarrayNodeLow.obsState))
    LOGGER.info('Invoked Configure on Subarray')
Example #6
0
 def configure_sub(sdp_block):
     # commented because below asserts are already checked in @sync_configure
     # resource('ska_mid/tm_subarray_node/1').assert_attribute('State').equals('ON')
     # resource('ska_mid/tm_subarray_node/1').assert_attribute('obsState').equals('IDLE')
     configure1_file = "resources/test_data/TMC_integration/configure1.json"
     update_scan_config_file(configure1_file, sdp_block)
     config = load_config_from_file(configure1_file)
     LOGGER.info("Configuring a scan for subarray 1")
     fixture["state"] = "Subarray CONFIGURING"
     SubarrayNode = DeviceProxy("ska_mid/tm_subarray_node/1")
     SubarrayNode.Configure(config)
     LOGGER.info("Invoked Configure on Subarray")
Example #7
0
 def test_SUT(sdp_block):
     # TODO: Will be uncommented when Data folder is available on CAR.
     # file = download_test_data("mid_configure_v1.json", "skampi-test-data/tmc-integration/configure")
     file = 'resources/test_data/OET_integration/example_configure.json'
     update_scan_config_file(file, sdp_block)
     LOGGER.info("Invoking Configure command on Subarray 1")
     config = load_config_from_file(file)
     os.remove(file)
     SubarrayNode = DeviceProxy('ska_mid/tm_subarray_node/1')
     SubarrayNode.Configure(config)
     LOGGER.info("Subarray obsState is: " + str(SubarrayNode.obsState))
     LOGGER.info('Invoked Configure on Subarray')