pvcompare.check_inputs.check_for_valid_country_year

pvcompare.check_inputs.check_for_valid_country_year(country, year, static_inputs_directory)[source]

Checks static input files for valid countries and years.

Returns error if the country or year of the simulation is not valid. Static input files that are checked: ‘EUROSTAT_population.csv’, ‘list_of_workalender_countries.csv’, ‘total_electricity_consumption_residential.csv’

Parameters
  • country (str) – country of simulation

  • year (int) – year of simulation

  • static_inputs_directory (str or None) – Path to pvcompare static inputs. If None, constants.DEFAULT_STATIC_INPUTS_DIRECTORY is used. Default: None.

Returns

Return type

None