Skip to content

Commit

Permalink
codacy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
yunjunz committed Jun 17, 2022
1 parent 97d361d commit 3fb514d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions mintpy/objects/ionex.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,6 @@ def parse_map(tec_map, key='TEC', exponent=-1):
for line in header:
if line.strip().endswith('# OF MAPS IN FILE'):
num_map = int(line.split()[0])
elif line.strip().endswith('DHGT'):
ion_hgt = float(line.split()[0])
elif line.strip().endswith('DLAT'):
lat0, lat1, lat_step = [float(x) for x in line.split()[:3]]
elif line.strip().endswith('DLON'):
Expand Down Expand Up @@ -382,7 +380,7 @@ def animate(*args):
# output
out_fig = '{}.gif'.format(os.path.abspath(tec_file))
if save_fig:
print('saving animation to {}'.format(outfig))
print('saving animation to {}'.format(out_fig))
ani.save(out_fig, writer='imagemagick', dpi=300)

print('showing animation ...')
Expand Down
7 changes: 1 addition & 6 deletions mintpy/simulation/iono.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@
import matplotlib.pyplot as plt
from scipy import interpolate

from mintpy.objects import ionex
from mintpy.utils import (
ptime,
readfile,
utils0 as ut,
)
from mintpy.utils import ptime, readfile, utils0 as ut


# constants
Expand Down

0 comments on commit 3fb514d

Please sign in to comment.