import os
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
from OceanGym.llm.memory import extract_mem_from_output, update_memory, memory, important_memory, convert_ndarray_to_list, extract_important_mem_from_output,update_important_memory,save_all_memory,clear_memory,load_memory_from_file
# migration_mem_dir = "D:\\2_data\\unreal_projects\\zip\\OceanGym\\memory\\mem_7\\memory_2025-09-04_10-55-26_迁移实验.json"

# memory = load_memory_from_file(migration_mem_dir)
# print("Loaded memory:", memory)
loc = [100.567, -50.123, -40.0, 25, -75.99]
loc_formatted = [round(float(coord), 1) for coord in loc]
print("Formatted location:", loc_formatted)