From 0a03c54f4f2aa0b08d237b1cdab0882a2024a85a Mon Sep 17 00:00:00 2001 From: Carlos Cueto Date: Fri, 18 Oct 2024 11:08:41 +0100 Subject: [PATCH] Add legacy warnings --- stride/problem/acquisitions.py | 2 ++ stride/problem/geometry.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/stride/problem/acquisitions.py b/stride/problem/acquisitions.py index 972a402..13a0180 100644 --- a/stride/problem/acquisitions.py +++ b/stride/problem/acquisitions.py @@ -1177,6 +1177,8 @@ def __get_desc__(self, **kwargs): shot_ids = kwargs.pop('shot_ids', None) if legacy: + mosaic.logger().warn('Loading legacy Acquisitions file...') + description = { 'num_shots': self.num_shots, 'shots': [], diff --git a/stride/problem/geometry.py b/stride/problem/geometry.py index f631c80..4bf0aca 100644 --- a/stride/problem/geometry.py +++ b/stride/problem/geometry.py @@ -403,6 +403,8 @@ def __get_desc__(self, **kwargs): legacy = kwargs.pop('legacy', False) if legacy: + mosaic.logger().warn('Loading legacy Geometry file...') + description = { 'num_locations': self.num_locations, 'locations': [],