Skip to content

Commit

Permalink
fix: swap remaining prints to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg committed Nov 19, 2024
1 parent 7d4dc53 commit bcb4edf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lat_alignment/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ def main():
full_alignment[0], full_alignment[1], "opt_primary", "opt_global", False
)
except Exception as e:
print(
f"Failed to load primary due to error: \n\t{e}\n if the primary was not in your data you can ignore this."
logger.warning(
"Failed to load primary due to error: \n\t%s\n if the primary was not in your data you can ignore this.",
str(e),
)
meas = {}
full_alignment = identity
Expand All @@ -195,8 +196,9 @@ def main():
False,
)
except Exception as e:
print(
f"Failed to load secondary due to error: \n\t{e}\n if the secondary was not in your data you can ignore this."
logger.warning(
"Failed to load secondary due to error: \n\t%s\n if the secondary was not in your data you can ignore this.",
str(e),
)
meas = {}
full_alignment = identity
Expand Down

0 comments on commit bcb4edf

Please sign in to comment.