예제 #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
        ])
예제 #2
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
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
    ])
예제 #3
0
def _test_classify_image_teardown():
    test.remove_files([test_file_name, test_image])
예제 #4
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_to_rgb_no_data_teardown():
    test.remove_files(
        [test_toRGB_noData_testFilename, test_toRGB_noData_testImage])
예제 #5
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_aster_conversion_teardown():
    test.remove_files([
        _test_AsterConversion_db, _test_AsterConversion_envi + '.hdr',
        _test_AsterConversion_envi + '.sli'
    ])
예제 #6
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
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])
예제 #7
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_to_rgb_avc_teardown():
    test.remove_files([test_toRGB_AVC_testFilename, test_toRGB_AVC_testImage])
예제 #8
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_to_rgb_teardown():
    test.remove_files([test_to_rgb_test_file_name, test_toRGB_testImage])
예제 #9
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_filter_classes_teardown():
    test.remove_files(
        [test_filterClasses_testFilename, test_filterClasses_testImage])
예제 #10
0
파일: mineral_test.py 프로젝트: yxqd/pycoal
def _test_classify_image_threshold_subset_teardown():
    test.remove_files([
        test_classifyImage_threshold_subset_testFilename,
        test_classifyImage_threshold_subset_testImage
    ])