Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pyat/readwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ def read_shd_bin(*varargin):
if len(varargin) == 2:
freq = varargin[1]
else:
freq = np.NaN
freq = np.nan

# optional source (x,y) coordinate
if len(varargin) >= 3:
xs = varargin[1]
ys = varargin[2]
else:
xs = np.NaN
ys = np.NaN
xs = np.nan
ys = np.nan

##
f = open( filename, 'rb' )
Expand Down Expand Up @@ -612,15 +612,15 @@ def read_shd (*varargin ):
if len(varargin) == 2:
freq = varargin[1]
else:
freq = np.NaN
freq = np.nan

# optional source (x,y) coordinate
if len(varargin) >= 3:
xs = varargin[1]
ys = varargin[2]
else:
xs = np.NaN
ys = np.NaN
xs = np.nan
ys = np.nan

PlotType = []; # in case this was not set

Expand Down