Skip to content

Commit

Permalink
Merge pull request #145 from lsst-dm/u/womullan/fixtrackgin
Browse files Browse the repository at this point in the history
 tracking now picked up properly
  • Loading branch information
womullan committed Mar 28, 2024
2 parents cd818df + 50fe08f commit 380ed2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/pmcs/202403-ME.xls
Git LFS file not shown
5 changes: 4 additions & 1 deletion milestones/celeb.py
Expand Up @@ -286,7 +286,10 @@ def generate_doc(args, milestones):
get_pmcs_path_months(args.pmcs_data, months), args.local_data
)

milestones = [ms for ms in milestones if ms.milestone_tracking]
for m in milestones:
if m.milestone_tracking == "Y":
print(f"Track='{m.milestone_tracking}'", m.code, m.name, m.completed)
milestones = [ms for ms in milestones if ms.milestone_tracking == "Y"]

milestones = sorted(milestones, key=lambda ms: ms.fdue)

Expand Down
6 changes: 6 additions & 0 deletions milestones/excel.py
Expand Up @@ -132,6 +132,11 @@ def extract_task_details(task_sheet, load_tasks):
celebrate = fetcher(
"actv_code_celebratory_achievements_id", task_sheet.row(rownum)
)
milestone_tracking = ""
if "actv_code_milestone_tracking_id" in fetcher._hdr:
milestone_tracking = fetcher(
"actv_code_milestone_tracking_id", task_sheet.row(rownum)
)
summarychart = fetcher("actv_code_summary_chart_id", task_sheet.row(rownum))

milestones.append(
Expand All @@ -146,6 +151,7 @@ def extract_task_details(task_sheet, load_tasks):
start,
completed,
celebrate,
milestone_tracking,
summarychart,
)
)
Expand Down

0 comments on commit 380ed2b

Please sign in to comment.