Skip to content

Commit

Permalink
[uvtable] Rename format uvtable->ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
mtazzari committed Oct 11, 2017
1 parent f9f3c1e commit 4ca69a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uvplot/uvtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, uvtable=None, filename="", wle=1, **kwargs):
if filename != "":
self.filename = filename

uvdata = self.read_uvtable(self.filename, kwargs.get('format', 'uvtable'))
uvdata = self.read_uvtable(self.filename, kwargs.get('format', 'ascii'))

u = uvdata[:, 0]
v = uvdata[:, 1]
Expand All @@ -61,7 +61,7 @@ def __init__(self, uvtable=None, filename="", wle=1, **kwargs):
@staticmethod
def read_uvtable(filename, format):
""" Read uvtable from file, given a specific format. """
if format == 'uvtable':
if format == 'ascii':
uvdata = np.loadtxt(filename)

else:
Expand Down

0 comments on commit 4ca69a6

Please sign in to comment.