The above exception was the direct cause of the following exception:
year = 2020
@pytest.mark.parametrize("year", [2020])
@pytest.mark.inventory
def test_generate_inventories(year):
for inventory in config()['databases']:
try:
generate_inventory(inventory, year)
tests/test_inventory_generation.py:30:
stewi/globals.py:302: in generate_inventory
GHGRP.main(Option = 'A', Year = [year])
stewi/GHGRP.py:770: in main
ghgrp1 = download_and_parse_subpart_tables(year, m)
stewi/GHGRP.py:338: in download_and_parse_subpart_tables
table_df = import_or_download_table(filepath, subpart_emissions_table,
stewi/GHGRP.py:244: in import_or_download_table
row_count = get_row_count(table, report_year=year)
___ test_generate_inventories[2020] ____
table = 'C_CONFIGURATION_LEVEL_INFO', report_year = '2020'
stewi/GHGRP.py:127: IndexError
The above exception was the direct cause of the following exception:
year = 2020
tests/test_inventory_generation.py:30:
stewi/globals.py:302: in generate_inventory GHGRP.main(Option = 'A', Year = [year]) stewi/GHGRP.py:770: in main ghgrp1 = download_and_parse_subpart_tables(year, m) stewi/GHGRP.py:338: in download_and_parse_subpart_tables table_df = import_or_download_table(filepath, subpart_emissions_table, stewi/GHGRP.py:244: in import_or_download_table row_count = get_row_count(table, report_year=year)
table = 'C_CONFIGURATION_LEVEL_INFO', report_year = '2020'
stewi/GHGRP.py:129: Exception