reV.utilities.cli_functions.format_analysis_years

format_analysis_years(analysis_years=None)[source]

Format user’s analysis_years input

Parameters:

analysis_years (int | str | list, optional) – Years to run reV analysis on. Can be an integer or string, or a list of integers or strings (or None). This input will get converted to a list of values automatically. If None, a ConfigWarning will be thrown. By default, None.

Returns:

list – List of analysis years. This list will never be empty, but it can contain None as the only value.