Skip to content

Commit

Permalink
print -> logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaanaksit committed Dec 3, 2023
1 parent e8a50a3 commit e6ab390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion odak/visualize/plotly.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import sys
import torch
import logging
try:
import plotly
import plotly.graph_objects as go
from plotly.subplots import make_subplots
except:
print('odak.visualize.plotly requires certain packages: pip install plotly kaleido')
warning = 'odak.visualize.plotly requires certain packages: pip install plotly kaleido'
logging.warning(warning)
import numpy as np
from ..wave import calculate_phase, calculate_amplitude, calculate_intensity

Expand Down

0 comments on commit e6ab390

Please sign in to comment.