Skip to content

Commit

Permalink
allow read_data = False for single element lists of files in read_uvh5
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jul 7, 2018
1 parent b93e06f commit a07af65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyuvdata/uvdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ def read_uvh5(self, filename, antenna_nums=None, antenna_names=None,
"""
from . import uvh5
if isinstance(filename, (list, tuple)):
if not read_data:
if not read_data and len(filename) > 1:
raise ValueError('read_data cannot be False for a list of uvfits files')

self.read_uvh5(filename[0], antenna_nums=antenna_nums,
Expand Down

0 comments on commit a07af65

Please sign in to comment.