Skip to content

Commit

Permalink
add tqdm status to plot_pfss()
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Aug 15, 2023
1 parent 25bfeb2 commit 3c1b580
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion solarmach/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def plot_pfss(self,
lon_sep_angles = np.array([])
lat_sep_angles = np.array([])

for i, body_id in enumerate(self.body_dict):
for i, body_id in enumerate(tqdm(self.body_dict)):

body_lab = self.body_dict[body_id][1]
body_color = self.body_dict[body_id][2]
Expand Down Expand Up @@ -1554,3 +1554,9 @@ def _isstreamlit():
except ModuleNotFoundError:
use_streamlit = False
return use_streamlit


if _isstreamlit():
from stqdm import stqdm as tqdm
else:
from tqdm.auto import tqdm

0 comments on commit 3c1b580

Please sign in to comment.