There was an error while loading. Please reload this page.
1 parent 680eae8 commit e5f33cfCopy full SHA for e5f33cf
src/neonutilities/aop_download.py
@@ -390,7 +390,7 @@ def validate_neon_site(site):
390
391
def validate_year(year):
392
# year = str(year)
393
- year_pattern = "20[1-9][0-9]"
+ year_pattern = "20[12-99]{2}"
394
if not re.fullmatch(year_pattern, year):
395
raise ValueError(
396
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