from target_simulator.analysis.simulation_archive import SimulationArchive

D = type("D", (), {})()
D.name = "geo_test"
D.to_dict = lambda: {"dummy": True}
sa = SimulationArchive(D)
ownship = {
    "timestamp": 100.0,
    "latitude": 45.0,
    "longitude": 9.0,
    "position_xy_ft": (0.0, 0.0),
}
sa.add_ownship_state(ownship)
target_x_ft = 100.0 / 0.3048
target_y_ft = 200.0 / 0.3048
sa.add_real_state(1, 100.5, (target_x_ft, target_y_ft, 30.0))
print("ownship_trajectory=", sa.ownship_trajectory)
print("recorded_data=", sa.recorded_data)
print("recorded_geopos=", sa.recorded_geopos)
import target_simulator.analysis.simulation_archive as mod

print("HAS_PYPROJ=", getattr(mod, "_HAS_PYPROJ", None))
print("module file=", mod.__file__)
