Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
albrja committed Nov 29, 2023
1 parent 3fa22b6 commit e8b26b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pseudopeople/configuration/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ def validate_noise_level_proportions(
if dataset.name == metadata.DatasetNames.SSA:
state = "USA"
else:
# Note: This is a shortcoming of our current approach to user warnings and will be fixed
# with a future release/our next data upload. We do not have a way to get state in a
# case where the user is not filtering on state because they either are using the sample
# data or state (Rhode Island) data.
if len(dataset_proportions["state"].unique()) == 1:
state = dataset_proportions["state"].unique()[0]
else:
Expand Down

0 comments on commit e8b26b7

Please sign in to comment.