Ejemplo n.º 1
0
def _test_intersect_proximity_teardown():
    mining_name = splitext(basename(abspath(mining_filename)))[0]
    for vector_file in vector_filename:
        vector_name = splitext(basename(abspath(vector_file)))[0]
        output_directory = 'images'
        feature_header_name = output_directory + '/' + mining_name + '_' + \
            vector_name + '.hdr'
        feature_image_name = feature_header_name[:-4] + '.img'
        proximity_header_name = output_directory + '/' + mining_name + '_' + \
            vector_name + '_proximity.hdr'
        proximity_image_name = proximity_header_name[:-4] + '.img'
        test_image_name = test_filename[:-4] + '.img'
        test.remove_files([
            feature_header_name, feature_image_name, proximity_header_name,
            proximity_image_name, test_filename, test_image_name
        ])
Ejemplo n.º 2
0
def _test_spectral_conversion_teardown():
    test.remove_files([
        _test_SpectralConversion_db, _test_SpectralConversion_dir,
        _test_SpectralConversion_envi, _test_SpectralConversion_envi_hdr,
        _test_SpectralConversion_envi_sli
    ])
Ejemplo n.º 3
0
def _test_classify_image_teardown():
    test.remove_files([test_file_name, test_image])
Ejemplo n.º 4
0
def _test_to_rgb_no_data_teardown():
    test.remove_files(
        [test_toRGB_noData_testFilename, test_toRGB_noData_testImage])
Ejemplo n.º 5
0
def _test_aster_conversion_teardown():
    test.remove_files([
        _test_AsterConversion_db, _test_AsterConversion_envi + '.hdr',
        _test_AsterConversion_envi + '.sli'
    ])
Ejemplo n.º 6
0
def _test_classify_image_teardown():
    test.remove_files(
        [f[:-4] + '_class_test.hdr'
         for f in test_classifyImage_testFilenames] +
        [f[:-4] + '_class_test.img' for f in test_classifyImage_testFilenames])
Ejemplo n.º 7
0
def _test_to_rgb_avc_teardown():
    test.remove_files([test_toRGB_AVC_testFilename, test_toRGB_AVC_testImage])
Ejemplo n.º 8
0
def _test_to_rgb_teardown():
    test.remove_files([test_to_rgb_test_file_name, test_toRGB_testImage])
Ejemplo n.º 9
0
def _test_filter_classes_teardown():
    test.remove_files(
        [test_filterClasses_testFilename, test_filterClasses_testImage])
Ejemplo n.º 10
0
def _test_classify_image_threshold_subset_teardown():
    test.remove_files([
        test_classifyImage_threshold_subset_testFilename,
        test_classifyImage_threshold_subset_testImage
    ])