Skip to content

Commit

Permalink
Minor cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
geojunky committed Nov 7, 2024
1 parent a922e70 commit bab1f12
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions seismic/ASDFdatabase/waveform_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
"""

import os, sys

is_windows = sys.platform.startswith('win')
if(is_windows): # suppress warnings on windows
import warnings
warnings.filterwarnings('ignore', \
message='Valid PROJ data directory not found')
# end if

import numpy as np
from obspy import UTCDateTime
import click
Expand Down Expand Up @@ -42,8 +50,6 @@

matplotlib.use('TKAgg')

is_windows = sys.platform.startswith('win')

class ProgressTracker(object):
def __init__(self, manager: Manager):
self.max = manager.Value('max', 0)
Expand Down Expand Up @@ -365,7 +371,7 @@ def fft_taper(data):

self.progress_tracker.increment()
cv, mv = self.progress_tracker.now()
print('Progress: [{}/{}] {:2.1f}%'.format(cv, mv, cv / mv * 100), end='\r')
print('Processing data: [{}/{} days] {:2.1f}%'.format(cv, mv, cv / mv * 100), end='\r')
sys.stdout.flush()
# end for

Expand Down

0 comments on commit bab1f12

Please sign in to comment.