Skip to content

Commit f561059

Browse files
committedJan 23, 2025
change default year to 2021
1 parent 1fde7b1 commit f561059

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎commands/arguments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class DynamicChoicesAction(argparse.Action):
1919
def __call__(self, parser, namespace, values, option_string=None):
20-
year_ref = getattr(namespace, "year_ref", 2018) # Default to 2018 if not set
20+
year_ref = getattr(namespace, "year_ref", 2021) # Default to 2021 if not set
2121
ags_master = RefData.load(int(year_ref)).ags_master()
2222
if values not in ags_master:
2323
raise argparse.ArgumentError(

‎src/climatevision/generator/years.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
YEAR_REF_DEFAULT = 2018
1+
YEAR_REF_DEFAULT = 2021
22
YEAR_REF_CHOICES = [2018, 2021]
33
YEAR_REF_HELP = "year of the reference data"
44

0 commit comments

Comments
 (0)
Please sign in to comment.