Skip to content

Commit

Permalink
Merge pull request #294 from sot/set-stars-bug
Browse files Browse the repository at this point in the history
Fix bug in setting stars attribute in reporting
  • Loading branch information
taldcroft authored Feb 26, 2019
2 parents 57a487c + 767b88a commit 224db08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions proseco/report_acq.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ def make_report(obsid, rootdir='.'):
context['include_halfws'] = ", ".join([str(val) for val in acqs.include_halfws])
context['exclude_ids'] = ", ".join([str(val) for val in acqs.exclude_ids])

# Get information that is not stored in the acqs pickle for space reasons
acqs.stars = StarsTable.from_agasc(acqs.att, date=acqs.date)
# Get stars if not already set (e.g. if acqs is coming from a pickle). If
# acqs.stars is already correctly defined this does nothing.
acqs.set_stars()

events = make_events(acqs)
context['events'] = events
Expand Down
5 changes: 3 additions & 2 deletions proseco/report_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def make_report(obsid, rootdir='.'):
context['include_ids'] = ", ".join([str(val) for val in guides.include_ids])
context['exclude_ids'] = ", ".join([str(val) for val in guides.exclude_ids])

# Get information that is not stored in the acqs pickle for space reasons
guides.stars = StarsTable.from_agasc(guides.att, date=guides.date)
# Get stars if not already set (e.g. if guides is coming from a pickle). If
# guides.stars is already correctly defined this does nothing.
guides.set_stars()

# For include/exclude stars, add some bookkeeping (the forced column)
cand_guides['forced'] = False
Expand Down

0 comments on commit 224db08

Please sign in to comment.