Skip to content

Commit

Permalink
Corrected format
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gehrke committed Apr 25, 2024
1 parent ad02626 commit 21296f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Binary file modified Population/BCIO_Population.xlsx
Binary file not shown.
Binary file modified Population/BCIO_Population_Expanded.xlsx
Binary file not shown.
15 changes: 7 additions & 8 deletions scripts/expanderAggregate.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import os
from pathlib import Path
import re
import openpyxl
from openpyxl.styles import Font
import csv
import codecs
import sys
import argparse
import subprocess
import io



Expand Down Expand Up @@ -55,13 +49,18 @@ def add_extra_values(header, row, aggregate, id_list):#, num):
name = ""
for key, cell in zip(header, row):
if key == "Label":
extra_values[key] = f"[{cell.value}] {agg}"
if agg == "aggregate":
extra_values[key] = f"{cell.value} population statistic"
else:
extra_values[key] = f"{agg} {cell.value} population statistic"

name = str(cell.value)

elif key == "Parent":
if agg == "aggregate":
extra_values[key] = 'data item'
else:
extra_values[key] = "aggregate "+name
extra_values[key] = f"{name} population statistic"
elif key == "ID":
id_list, new_id = generate_unique_id(cell.value, id_list, i)
extra_values[key] = new_id
Expand Down
1 change: 1 addition & 0 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openpyxl

0 comments on commit 21296f0

Please sign in to comment.