Skip to content

Commit

Permalink
fix specprod vs. specprod_dir bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Nov 3, 2015
1 parent fd34051 commit f2e1404
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions bin/desi_make_bricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ def main():
bricks = { }
try:
# Loop over exposures available for this night.
for exposure in desispec.io.get_exposures(args.night,specprod = args.specprod):
for exposure in desispec.io.get_exposures(args.night,specprod_dir = args.specprod):
# Ignore exposures with no fibermap, assuming they are calibration data.
fibermap_path = desispec.io.findfile(filetype = 'fibermap',night = args.night,
expid = exposure,specprod = args.specprod)
expid = exposure, specprod_dir = args.specprod)
if not os.path.exists(fibermap_path):
log.debug('Skipping exposure %08d with no fibermap.' % exposure)
continue
# Open the fibermap.
fibermap_data = desispec.io.read_fibermap(fibermap_path)
brick_ids = set(fibermap_data['BRICKNAME'])
# Loop over per-camera cframes available for this exposure.
cframes = desispec.io.get_files(filetype = 'cframe',night = args.night,
expid = exposure,specprod = args.specprod)
cframes = desispec.io.get_files(
filetype = 'cframe', night = args.night,
expid = exposure, specprod_dir = args.specprod)
log.debug('Exposure %08d covers %d bricks and has cframes for %s.' % (
exposure,len(brick_ids),','.join(cframes.keys())))
for camera,cframe_path in cframes.iteritems():
Expand Down
2 changes: 1 addition & 1 deletion py/desispec/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3'
__version__ = '0.3.1'

0 comments on commit f2e1404

Please sign in to comment.