diff --git a/dev/Untitled1.ipynb b/dev/Untitled1.ipynb index 097c30a2..c2720618 100644 --- a/dev/Untitled1.ipynb +++ b/dev/Untitled1.ipynb @@ -69,92 +69,656 @@ "NewDatabase(..., quiet=True)\n", "- Extracting source database\n", "- Extracting inventories\n", + "Cannot find cached inventories. Will create them now for next time...\n", + "Importing default inventories...\n", + "\n", + "Extracted 1 worksheets in 0.10 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 4 worksheets in 0.17 seconds\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 7 worksheets in 0.03 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.03 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.03 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Could not find a biosphere flow for ('Iron, 72% in magnetite, 14% in crude ore', 'natural resource', 'in ground', 'kilogram') in lci-vanadium.xlsx. Exchange deleted.\n", + "Could not find a biosphere flow for ('Iron, 72% in magnetite, 14% in crude ore', 'natural resource', 'in ground', 'kilogram') in lci-vanadium.xlsx. You need to fix this.\n", + "Could not find a biosphere flow for ('TiO2, 54% in ilmenite, 18% in crude ore, in ground', 'natural resource', 'in ground', 'kilogram') in lci-vanadium.xlsx. Exchange deleted.\n", + "Could not find a biosphere flow for ('TiO2, 54% in ilmenite, 18% in crude ore, in ground', 'natural resource', 'in ground', 'kilogram') in lci-vanadium.xlsx. You need to fix this.\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.38 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "The following datasets to import already exist in the source database. They will not be imported\n", + "+--------------------------------+--------------------------------+----------+-------------+\n", + "| Name | Reference product | Location | File |\n", + "+--------------------------------+--------------------------------+----------+-------------+\n", + "| fluorspar production, 97% puri | fluorspar, 97% purity | GLO | lci-PV.xlsx |\n", + "| metallization paste production | metallization paste, back side | RER | lci-PV.xlsx |\n", + "| metallization paste production | metallization paste, back side | RER | lci-PV.xlsx |\n", + "| metallization paste production | metallization paste, front sid | RER | lci-PV.xlsx |\n", + "| photovoltaic module production | photovoltaic module, building- | RER | lci-PV.xlsx |\n", + "| photovoltaic module production | photovoltaic module, building- | RER | lci-PV.xlsx |\n", + "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", + "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", + "| photovoltaic mounting system p | photovoltaic mounting system, | RER | lci-PV.xlsx |\n", + "| photovoltaic panel factory con | photovoltaic panel factory | GLO | lci-PV.xlsx |\n", + "| polyvinylfluoride production | polyvinylfluoride | US | lci-PV.xlsx |\n", + "| polyvinylfluoride production, | polyvinylfluoride, dispersion | US | lci-PV.xlsx |\n", + "| polyvinylfluoride, film produc | polyvinylfluoride, film | US | lci-PV.xlsx |\n", + "| silicon production, metallurgi | silicon, metallurgical grade | NO | lci-PV.xlsx |\n", + "| vinyl fluoride production | vinyl fluoride | US | lci-PV.xlsx |\n", + "| wafer factory construction | wafer factory | DE | lci-PV.xlsx |\n", + "+--------------------------------+--------------------------------+----------+-------------+\n", + "Extracted 1 worksheets in 0.04 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "The following datasets to import already exist in the source database. They will not be imported\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| Name | Reference product | Location | File |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| carbon dioxide, captured at ce | carbon dioxide, captured and r | RER | lci-synfuels-from-methanol-fro |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "The following datasets to import already exist in the source database. They will not be imported\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| Name | Reference product | Location | File |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| hydrogen production, coal gasi | hydrogen, gaseous, low pressur | RoW | lci-hydrogen-coal-gasification |\n", + "| methanol production, coal gasi | methanol | RoW | lci-hydrogen-coal-gasification |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "The following datasets to import already exist in the source database. They will not be imported\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| Name | Reference product | Location | File |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| hydrogen production, steam met | hydrogen, gaseous, low pressur | RER | lci-hydrogen-smr-atr-natgas.xl |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.00 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "The following datasets to import already exist in the source database. They will not be imported\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| Name | Reference product | Location | File |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "| methanol production facility, | methanol production facility, | RER | lci-synfuels-from-methanol-fro |\n", + "+--------------------------------+--------------------------------+----------+--------------------------------+\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 5 worksheets in 0.13 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.03 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.07 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.02 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.04 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.01 seconds\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 19 worksheets in 0.30 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.22 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.17 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.80 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Extracted 1 worksheets in 0.03 seconds\n", + "Migrating to 3.8 first\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Applying strategy: migrate_datasets\n", + "Applying strategy: migrate_exchanges\n", + "Remove uncertainty data.\n", + "Data cached. It is advised to restart your workflow at this point.\n", + "This allows premise to use the cached data instead, which results in\n", + "a faster workflow.\n", "- Fetching IAM data\n", "The following variables are missing from the IAM file:\n", "+---------------------------------------------------------------------------------------------------+\n", "| Variable |\n", "+---------------------------------------------------------------------------------------------------+\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Oil |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Biofuels |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|LNG |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal combustion engine efficienct|Gasoline |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Oil |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|LNG |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Internal combustion engine efficienct|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Hydrogen |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Biofuels |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Oil |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Hydrogen |\n", "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|LNG |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Oil |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Gasoline |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Gasoline |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Gasoline |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|LNG |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal combustion engine efficienct|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Oil |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Hydrogen |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Biofuels |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Oil |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Gasoline |\n", "+---------------------------------------------------------------------------------------------------+\n", "The following variables are missing from the IAM file:\n", "+---------------------------------------------------------------------------------------------------+\n", "| Variable |\n", "+---------------------------------------------------------------------------------------------------+\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Oil |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Biofuels |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|LNG |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal combustion engine efficienct|Gasoline |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Oil |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|LNG |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Internal combustion engine efficienct|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Hydrogen |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Biofuels |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 30km|Oil |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|LNG |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Gasoline |\n", "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Oil |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 10km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Biofuel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 60km|Biofuel |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Gasoline |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Gasoline |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Gasoline |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|LNG |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Biofuel |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Hydrogen |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal combustion engine efficienct|Gasoline |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Plug-in electric vehicle 30km|Oil |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 10km|Oil |\n", "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Biofuel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Fuel Cell Vehicle|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Biofuels |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Fuel Cell Vehicle|Gasoline |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Biofuel |\n", "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Diesel |\n", - "| Energy Service|Transportation|Freight|Medium Truck|Internal Combustion Engine|Gasoline |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Plug-in electric vehicle 60km|Oil |\n", - "| Energy Service|Transportation|Freight|Heavy Truck|Hybrid engine|Diesel |\n", + "| Energy Service|Transportation|Freight|Heavy Truck|Internal Combustion Engine|Hydrogen |\n", + "| Energy Service|Transportation|Freight|Medium Truck|Hybrid engine|Gasoline |\n", "+---------------------------------------------------------------------------------------------------+\n", "Done!\n" ] @@ -185,7 +749,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "0c80994c-cbac-4143-81ee-1de1531a6f95", "metadata": {}, "outputs": [ @@ -198,7 +762,22 @@ " File \"/opt/homebrew/Caskroom/miniforge/base/envs/premise/lib/python3.11/site-packages/ipykernel/ipkernel.py\", line 770, in _clean_thread_parent_frames\n", " def _clean_thread_parent_frames(\n", "\n", - "KeyboardInterrupt: \n" + "KeyboardInterrupt: \n", + "Processing scenarios: 0%| | 0/2 [01:23 1\u001b[0m \u001b[43mndb\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mupdate\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n", + "File \u001b[0;32m~/GitHub/premise/premise/new_database.py:951\u001b[0m, in \u001b[0;36mNewDatabase.update\u001b[0;34m(self, sectors)\u001b[0m\n\u001b[1;32m 949\u001b[0m update_func \u001b[38;5;241m=\u001b[39m sector_update_methods[sector][\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mfunc\u001b[39m\u001b[38;5;124m\"\u001b[39m]\n\u001b[1;32m 950\u001b[0m fixed_args \u001b[38;5;241m=\u001b[39m sector_update_methods[sector][\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124margs\u001b[39m\u001b[38;5;124m\"\u001b[39m]\n\u001b[0;32m--> 951\u001b[0m scenario \u001b[38;5;241m=\u001b[39m \u001b[43mupdate_func\u001b[49m\u001b[43m(\u001b[49m\u001b[43mscenario\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mfixed_args\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 953\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mapplied functions\u001b[39m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;129;01min\u001b[39;00m scenario:\n\u001b[1;32m 954\u001b[0m scenario[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mapplied functions\u001b[39m\u001b[38;5;124m\"\u001b[39m] \u001b[38;5;241m=\u001b[39m []\n", + "File \u001b[0;32m~/GitHub/premise/premise/transport.py:52\u001b[0m, in \u001b[0;36m_update_vehicles\u001b[0;34m(scenario, vehicle_type, version, system_model)\u001b[0m\n\u001b[1;32m 49\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n\u001b[1;32m 50\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUnknown vehicle type.\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m---> 52\u001b[0m trspt \u001b[38;5;241m=\u001b[39m \u001b[43mTransport\u001b[49m\u001b[43m(\u001b[49m\n\u001b[1;32m 53\u001b[0m \u001b[43m \u001b[49m\u001b[43mdatabase\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mdatabase\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 54\u001b[0m \u001b[43m \u001b[49m\u001b[43myear\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43myear\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 55\u001b[0m \u001b[43m \u001b[49m\u001b[43mmodel\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mmodel\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 56\u001b[0m \u001b[43m \u001b[49m\u001b[43mpathway\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mpathway\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 57\u001b[0m \u001b[43m \u001b[49m\u001b[43miam_data\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[43m[\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43miam data\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 58\u001b[0m \u001b[43m \u001b[49m\u001b[43mversion\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mversion\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 59\u001b[0m \u001b[43m \u001b[49m\u001b[43msystem_model\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43msystem_model\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 60\u001b[0m \u001b[43m \u001b[49m\u001b[43mvehicle_type\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mvehicle_type\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 61\u001b[0m \u001b[43m \u001b[49m\u001b[43mrelink\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[38;5;28;43;01mFalse\u001b[39;49;00m\u001b[43m,\u001b[49m\n\u001b[1;32m 62\u001b[0m \u001b[43m \u001b[49m\u001b[43mhas_fleet\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mhas_fleet\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 63\u001b[0m \u001b[43m \u001b[49m\u001b[43mindex\u001b[49m\u001b[38;5;241;43m=\u001b[39;49m\u001b[43mscenario\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mget\u001b[49m\u001b[43m(\u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mindex\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 64\u001b[0m \u001b[43m\u001b[49m\u001b[43m)\u001b[49m\n\u001b[1;32m 66\u001b[0m scenario[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdatabase\u001b[39m\u001b[38;5;124m\"\u001b[39m] \u001b[38;5;241m=\u001b[39m trspt\u001b[38;5;241m.\u001b[39mdatabase\n\u001b[1;32m 67\u001b[0m scenario[\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mcache\u001b[39m\u001b[38;5;124m\"\u001b[39m] \u001b[38;5;241m=\u001b[39m trspt\u001b[38;5;241m.\u001b[39mcache\n", + "File \u001b[0;32m~/GitHub/premise/premise/transport.py:366\u001b[0m, in \u001b[0;36mTransport.__init__\u001b[0;34m(self, database, iam_data, model, pathway, year, version, system_model, relink, vehicle_type, has_fleet, index)\u001b[0m\n\u001b[1;32m 363\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mmapping \u001b[38;5;241m=\u001b[39m get_vehicles_mapping()\n\u001b[1;32m 365\u001b[0m mapping \u001b[38;5;241m=\u001b[39m InventorySet(database\u001b[38;5;241m=\u001b[39mdatabase, version\u001b[38;5;241m=\u001b[39mversion, model\u001b[38;5;241m=\u001b[39mmodel)\n\u001b[0;32m--> 366\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mvehicle_map \u001b[38;5;241m=\u001b[39m \u001b[43mmapping\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43mgenerate_transport_map\u001b[49m(transport_type\u001b[38;5;241m=\u001b[39mvehicle_type)\n\u001b[1;32m 367\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mrev_map \u001b[38;5;241m=\u001b[39m {\u001b[38;5;28mnext\u001b[39m(\u001b[38;5;28miter\u001b[39m(v)): k \u001b[38;5;28;01mfor\u001b[39;00m k, v \u001b[38;5;129;01min\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mvehicle_map\u001b[38;5;241m.\u001b[39mitems()}\n\u001b[1;32m 368\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mvehicle_fuel_map \u001b[38;5;241m=\u001b[39m mapping\u001b[38;5;241m.\u001b[39mgenerate_vehicle_fuel_map(\n\u001b[1;32m 369\u001b[0m transport_type\u001b[38;5;241m=\u001b[39mvehicle_type\n\u001b[1;32m 370\u001b[0m )\n", + "\u001b[0;31mAttributeError\u001b[0m: 'InventorySet' object has no attribute 'generate_transport_map'" ] } ], diff --git a/premise/data/additional_inventories/lci-rail-freight.xlsx b/premise/data/additional_inventories/lci-rail-freight.xlsx new file mode 100644 index 00000000..1d37553d Binary files /dev/null and b/premise/data/additional_inventories/lci-rail-freight.xlsx differ