Skip to content

Commit 0046a1e

Browse files
authored
Update aop_download.py
1 parent e5f33cf commit 0046a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neonutilities/aop_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def validate_neon_site(site):
390390

391391
def validate_year(year):
392392
# year = str(year)
393-
year_pattern = "20[12-99]{2}"
393+
year_pattern = "20?(1[2-9]|2[0-9])"
394394
if not re.fullmatch(year_pattern, year):
395395
raise ValueError(
396396
f'{year} is an invalid year. Year is required in the format "2017" or 2017, eg. NEON AOP data are available from 2013 to present.'

0 commit comments

Comments
 (0)