Scripts README
Files created
brightway_prepare.py: scans installed Brightway2 databases for matching background processes using openlca_premap.csv search strings and writes brightway_premap_results.csv with top matches.run_lcia.py: creates foreground processes from inventory_template.csv and runs deterministic LCIA for Sachet_fu and PET_fu. It expects brightway_premap_results.csv to be completed with chosen process IDs.montecarlo.py: samples input parameters within uncertainty bounds and writes sampled parameter tables for Monte Carlo runs.Usage overview
python -m pip install -r requirements.txt
brightway_prepare.py to search for candidate background processes and produce brightway_premap_results.csv.brightway_premap_results.csv and edit the file to select the preferred (db_name, process name, process code) for each flow. Add an explicit nexus_process_id or ensure the top_match is the correct one.run_lcia.py to build foreground processes and run the LCIA. If needed, adapt run_lcia.py to accept a custom inventory file for Monte Carlo.Notes & limitations
openlca_import_template.csv and openlca_premap.csv plus openlca_mapping.md which contain guidance for import.