Skip to content

Commit

Permalink
adding debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Nov 2, 2023
1 parent a1c9af6 commit 2b9a334
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdgpoints/geoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ def use_model(user_vrs: Union[str, Literal[None]]=None,
"""
L = getLogger(__name__)
vrs = None
L.debug(f'user_vrs={user_vrs}, las_vrs={las_vrs}')
if las_vrs:
# override user value with detected VRS
vrs = model_search(las_vrs)
L.debug(f'after model_search(las_vrs): vrs={vrs}')
if user_vrs and vrs:
# scenarios 1 and 2
L.info('User value of "%s" will be overridden by detected VRS "%s"' % (user_vrs, vrs))
Expand All @@ -91,6 +93,7 @@ def use_model(user_vrs: Union[str, Literal[None]]=None,
return 0
else:
vrs = model_search(user_vrs)
L.debug(f'after model_search(user_vrs): vrs={vrs}')
if vrs:
# scenario 5
L.info('VRS found: %s (user-specified)' % (vrs))
Expand Down

1 comment on commit 2b9a334

@iannesbitt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to upstream issue iannesbitt/pyegt#1

Please sign in to comment.