Skip to content

Commit

Permalink
support upper-case column specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Oct 21, 2017
1 parent dadb155 commit de7ee2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py/desisurvey/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def get_exposures(self, start=None, stop=None,
Returns
-------
astropy.table.Table
Table with the specified columns and one row per exposure.
Table with the specified columns as uppercase and one row per exposure.
"""
# Get MJD range to show.
if start is None:
Expand Down Expand Up @@ -550,6 +550,7 @@ def get_exposures(self, start=None, stop=None,
tileinfo = None
output = astropy.table.Table()
for name in tile_fields.split(','):
name = name.lower()
if name == 'index':
output[name.upper()] = tile_index
elif name == 'ebmv':
Expand All @@ -566,6 +567,7 @@ def get_exposures(self, start=None, stop=None,
'Invalid tile field name: {0}.'.format(name))
output[name.upper()] = table[name][tile_index]
for name in exp_fields.split(','):
name = name.lower()
if name == 'snr2cum':
snr2cum = np.cumsum(
table['snr2frac'], axis=1).flatten()[order]
Expand Down

0 comments on commit de7ee2c

Please sign in to comment.