Skip to content

Commit

Permalink
fix: typo in code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ME-researchgroup committed May 27, 2024
1 parent 39ad47c commit 75701d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weightfactors/raking/generalized_raker.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def validate_input(self, data: pd.DataFrame) -> None:
f"There are observations for a value in '{key}' that has not been mapped to a population target"
)
# Make sure we have at least 1 observation for each category
# It is impossible to set values without observations to a weight larger than 1
# It is impossible to set values without observations to a weight larger than 0
for k, v in value.items():
if k not in data[key].unique() and v > 0:
raise KeyError(f"There are no observations for {k} in column {key}, but a population target has been set")
Expand Down

0 comments on commit 75701d4

Please sign in to comment.