Skip to content

Commit

Permalink
Merge pull request #241 from PSLmodels/add-targets-comments
Browse files Browse the repository at this point in the history
Add ability to comment out one or more lines in a targets file
  • Loading branch information
martinholmer authored Oct 18, 2024
2 parents 0cae03e + 2a755bb commit 3425789
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 3425789

Please sign in to comment.