Skip to content

Commit 50ed5aa

Browse files
authored
Merge pull request #126 from krivard/feature/drop-minimum-sample-size
Remove minimum sample size requirement.
2 parents 56eaba2 + 8c3f97d commit 50ed5aa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/acquisition/covidcast/csv_importer.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ class CsvImporter:
2929
MIN_YEAR = 2019
3030
MAX_YEAR = 2030
3131

32-
# reasonable lower bound for sanity checking sample size (if sample size is
33-
# present, then, for privacy, it should definitely be larger than this value)
34-
MIN_SAMPLE_SIZE = 5
35-
3632
# NOTE: this should be a Python 3.7+ `dataclass`, but the server is on 3.4
3733
# See https://docs.python.org/3/library/dataclasses.html
3834
class RowValues:
@@ -229,8 +225,6 @@ def extract_and_check_row(row, geo_type):
229225
except ValueError:
230226
# expected a number, but got a string
231227
return (None, 'sample_size')
232-
if sample_size is not None and sample_size < CsvImporter.MIN_SAMPLE_SIZE:
233-
return (None, 'sample_size')
234228

235229
# return extracted and validated row values
236230
row_values = CsvImporter.RowValues(geo_id, value, stderr, sample_size)

0 commit comments

Comments
 (0)