Skip to content

Commit

Permalink
Add legacy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccuetom committed Oct 18, 2024
1 parent da63513 commit 0a03c54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stride/problem/acquisitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [],
Expand Down
2 changes: 2 additions & 0 deletions stride/problem/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [],
Expand Down

0 comments on commit 0a03c54

Please sign in to comment.