Skip to content

Commit f9ed4d4

Browse files
committed
raise error if new groups seen
1 parent 0ef6b13 commit f9ed4d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_delphi_utils_python/data_proc/geomap/geo_data_proc.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,16 @@ def assign_county_groups():
599599
# If grouping file has no new rows, no need to process again.
600600
if county_groups.empty:
601601
return
602+
# Grouping spreadsheet contains rows not seen in old, on-disk county
603+
# groupings file. Combining the two is delicate. While the code below
604+
# appears to work, it has not been formally tested and could be
605+
# invalid for even small changes to the format of the input county
606+
# groupings file.
607+
else:
608+
raise NotImplementedError(
609+
"Can't combine old and new county groupings automatically, "
610+
"code is not tested or robust to changes in input format"
611+
)
602612

603613
# Assign an incrementing integer to be the group id of each remaining
604614
# county grouping within a state using the given sort order.

0 commit comments

Comments
 (0)