Skip to content

Commit

Permalink
Add ability to comment out one or more lines in a targets file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Oct 18, 2024
1 parent 0cae03e commit 2a755bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmd/areas/create_area_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ def prepared_data(area: str, vardf: pd.DataFrame):
"""
national_population = (vardf.s006 * vardf.XTOT).sum()
numobs = len(vardf)
tdf = pd.read_csv(AREAS_FOLDER / "targets" / f"{area}_targets.csv")
targets_file = AREAS_FOLDER / "targets" / f"{area}_targets.csv"
tdf = pd.read_csv(targets_file, comment="#")
tm_tuple = ()
ta_list = []
row_num = 1
Expand Down

0 comments on commit 2a755bb

Please sign in to comment.