Commit 9f7c3a3a authored by 高雅喆's avatar 高雅喆

bug fix

parent e592f6d9
......@@ -327,9 +327,11 @@ def get_topic_and_pictorial_detail_for_debug(device_id="", underexposure_lin_top
linucb_topic_id_list_all = linucb_topic_id_list + underexposure_lin_topic_ids
underexposure_lin_topic_results = dict()
exposure_lin_topic_results = dict()
logging.info("debug_gyz:", linucb_topic_id_list_all)
if len(linucb_topic_id_list_all) > 0:
linucb_topic_dict = TopicUtils.get_linucb_topic_info_for_debug(len(linucb_topic_id_list_all),
linucb_topic_list=linucb_topic_id_list_all)
logging.info("debug_gyz:", linucb_topic_dict)
if len(linucb_topic_dict) > 0:
for topic_id in linucb_topic_id_list_all:
topic_id = topic_id
......@@ -352,6 +354,7 @@ def get_topic_and_pictorial_detail_for_debug(device_id="", underexposure_lin_top
k in underexposure_lin_topic_ids}
exposure_lin_topic_results = {k: v for k, v in linucb_topic_results.items() if
k in linucb_topic_id_list}
logging.info("debug_gyz:", underexposure_lin_topic_results, exposure_lin_topic_results)
if len(rank_topic_id_list) > 0:
rank_topic_dict = TopicUtils.get_linucb_topic_info_for_debug(len(rank_topic_id_list),
linucb_topic_list=rank_topic_id_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment