示例#1
0
from diffeo2d_learn.configuration import get_conftools_diffeo2d_estimators
from comptests.registrar import comptests_for_all
for_all_diffeo2d_estimators = comptests_for_all(get_conftools_diffeo2d_estimators())
示例#2
0
from comptests.registrar import comptests_for_all, comptests_for_all_pairs
from diffeo2dds.configuration.config_master import (get_conftools_discdds,
    get_conftools_symdds, get_conftools_uncertain_image_distances,
    get_conftools_uncertain_images, get_conftools_diffeo_action_distances)


for_all_diffeo_systems = comptests_for_all(get_conftools_discdds())
for_all_sym_diffeo_systems = comptests_for_all(get_conftools_symdds())
for_all_uncertain_images = comptests_for_all(get_conftools_uncertain_images())
for_all_uncertain_images_distances = comptests_for_all(get_conftools_uncertain_image_distances())
for_all_diffeo_action_distances = comptests_for_all(get_conftools_diffeo_action_distances())

dad = get_conftools_diffeo_action_distances()
discdds = get_conftools_discdds() 

for_all_pairs_discdds_distances = comptests_for_all_pairs(discdds, dad)

示例#3
0
from comptests.registrar import comptests_for_all, comptests_for_all_pairs
from diffeo2dds.configuration.config_master import (
    get_conftools_discdds, get_conftools_symdds,
    get_conftools_uncertain_image_distances, get_conftools_uncertain_images,
    get_conftools_diffeo_action_distances)

for_all_diffeo_systems = comptests_for_all(get_conftools_discdds())
for_all_sym_diffeo_systems = comptests_for_all(get_conftools_symdds())
for_all_uncertain_images = comptests_for_all(get_conftools_uncertain_images())
for_all_uncertain_images_distances = comptests_for_all(
    get_conftools_uncertain_image_distances())
for_all_diffeo_action_distances = comptests_for_all(
    get_conftools_diffeo_action_distances())

dad = get_conftools_diffeo_action_distances()
discdds = get_conftools_discdds()

for_all_pairs_discdds_distances = comptests_for_all_pairs(discdds, dad)
示例#4
0
#     
# 
# for_all_imagestreams = fancy_test_decorator(lister=image_stream_lister,
#             arguments=lambda id_image_stream: 
#                 (id_image_stream, testconfig().image_streams.instance(id_image_stream)),
#             attributes=lambda id_image_stream: dict(image_stream=id_image_stream),
#             debug=True)
# 
# def stream_lister():
#     config = testconfig()
#     keys = config.streams.keys()
#     keys = [k for k in keys if k.startswith('test_')]
#     return keys
# 
# for_all_streams = fancy_test_decorator(lister=stream_lister,
#             arguments=lambda x: (x, testconfig().streams.instance(x)),
#             attributes=lambda x: dict(stream=x),
#             debug=True)
from comptests.registrar import comptests_for_all
from diffeo2dds_learn import (get_conftools_streams,
    get_conftools_image_streams)
from diffeo2dds_learn.configuration.config_master import get_conftools_diffeoaction_estimators, \
    get_conftools_diffeosystem_estimators


for_all_streams = comptests_for_all(get_conftools_streams())
for_all_image_streams = comptests_for_all(get_conftools_image_streams())
for_all_diffeoaction_estimators = comptests_for_all(get_conftools_diffeoaction_estimators())
for_all_diffeosystem_estimators = comptests_for_all(get_conftools_diffeosystem_estimators())

示例#5
0
from diffeo2d_learn.configuration import get_conftools_diffeo2d_estimators
from comptests.registrar import comptests_for_all
for_all_diffeo2d_estimators = comptests_for_all(
    get_conftools_diffeo2d_estimators())
示例#6
0
#
#
# for_all_imagestreams = fancy_test_decorator(lister=image_stream_lister,
#             arguments=lambda id_image_stream:
#                 (id_image_stream, testconfig().image_streams.instance(id_image_stream)),
#             attributes=lambda id_image_stream: dict(image_stream=id_image_stream),
#             debug=True)
#
# def stream_lister():
#     config = testconfig()
#     keys = config.streams.keys()
#     keys = [k for k in keys if k.startswith('test_')]
#     return keys
#
# for_all_streams = fancy_test_decorator(lister=stream_lister,
#             arguments=lambda x: (x, testconfig().streams.instance(x)),
#             attributes=lambda x: dict(stream=x),
#             debug=True)
from comptests.registrar import comptests_for_all
from diffeo2dds_learn import get_conftools_streams, get_conftools_image_streams
from diffeo2dds_learn.configuration.config_master import (
    get_conftools_diffeoaction_estimators,
    get_conftools_diffeosystem_estimators,
)


for_all_streams = comptests_for_all(get_conftools_streams())
for_all_image_streams = comptests_for_all(get_conftools_image_streams())
for_all_diffeoaction_estimators = comptests_for_all(get_conftools_diffeoaction_estimators())
for_all_diffeosystem_estimators = comptests_for_all(get_conftools_diffeosystem_estimators())
# @for_all_symdiffeos
# def check_symdiffeo_dummy(id_symdiffeo, symdiffeo):
#     pass
# 
# 
# @for_all_dds
# def check_dds_dummy(id_dds, dds):
#     pass
# 
# 
# @for_all_images
# def check_image_dummy(id_image, image):
#     pass


for_all_planning_algos = comptests_for_all(get_conftools_planning_algos())
for_all_test_cases = comptests_for_all(get_conftools_testcases())
for_all_batches = comptests_for_all(get_conftools_batches())


@for_all_planning_algos
def check_planning_algo(id_ob, ob):
    pass

@for_all_test_cases
def check_testcase(id_ob, ob):
    pass

@for_all_batches
def check_batch(id_ob, ob):
    pass
示例#8
0
from comptests.registrar import comptests_for_all
from rosstream2boot import (get_conftools_robot_adapters, get_conftools_explogs,
    get_conftools_cmd_adapters, get_conftools_obs_adapters)



for_all_robot_adapters = comptests_for_all(get_conftools_robot_adapters())
for_all_obs_adapters = comptests_for_all(get_conftools_obs_adapters())
for_all_cmd_adapters = comptests_for_all(get_conftools_cmd_adapters())
for_all_explogs = comptests_for_all(get_conftools_explogs())

print('loaded tests')


@for_all_robot_adapters
def check_robot_adapter(id_ob, ob):
    pass

@for_all_obs_adapters
def check_obs_adapter(id_ob, ob):
    pass

@for_all_cmd_adapters
def check_cmd_adapter(id_ob, ob):
    pass

@for_all_explogs
def check_explog(id_ob, ob):
    pass
示例#9
0
#
# @for_all_symdiffeos
# def check_symdiffeo_dummy(id_symdiffeo, symdiffeo):
#     pass
#
#
# @for_all_dds
# def check_dds_dummy(id_dds, dds):
#     pass
#
#
# @for_all_images
# def check_image_dummy(id_image, image):
#     pass

for_all_planning_algos = comptests_for_all(get_conftools_planning_algos())
for_all_test_cases = comptests_for_all(get_conftools_testcases())
for_all_batches = comptests_for_all(get_conftools_batches())


@for_all_planning_algos
def check_planning_algo(id_ob, ob):
    pass


@for_all_test_cases
def check_testcase(id_ob, ob):
    pass


@for_all_batches
示例#10
0
from comptests.registrar import comptests_for_all
from diffeo2s.configuration.config_master import get_conftools_symdiffeos

for_all_symdiffeos = comptests_for_all(get_conftools_symdiffeos())