Releases: matthieu-str/mescal
Releases · matthieu-str/mescal
1.1.2
What is new?
- A spatialized biosphere database and the regionalized EF 3.1 methods (in
dev/ef regionalized/EF 3.1 regionalized.ipynb
). Your ecoinvent database then needs to be spatialized (seeRegioinvent
orRegiopremise
). - The function
add_carbon_capture_to_plant
(inmodify_inventory.py
) that adds a carbon capture and storage (CCS) process to a power plant and modifies its direct emissions accordingly. - The
main_database_name
argument of theESM
class that specifies the name of your ecoinvent database in case the input database in an aggregation of several databases. - The
assessment_type
argument innormalize_lca_metrics
(innormalization.py
) andgenerate_mod_file_ampl
(ingenerate_lcia_obj_ampl.py
) functions to differentiate between life-cycle impacts computation (by default) and direct emissions impact computation (assessment_type="direct emissions"
). - Plotting methods (
Plot
class inplot.py
) to visualize the results of thecompute_impact_scores
function (inimpact_assessment.py
). - The
connect_esm_results_to_database
method (inesm_back_to_lca.py
) to connect the LCI datasets created from ESM results to another LCI database. Thecreate_new_database_with_esm_results
method now only creates a new database with the LCI datasets from ESM results. - The
biosphere_db_name
argument in theESM
class to specify the name of the biosphere database.
What has changed?
- Corrected error occurring in
correct_esm_and_lca_efficiency_differences
(inadapt_efficiency.py
) when several input fuel flows were present in an operation LCI dataset. - The
mapping_ecoinvent_version_ipynb
notebook (to change the ecoinvent version of your mapping file) has been updated to work with version 3.10.1 of ecoinvent. - Variables and parameters naming for direct emissions indicators in the AMPL files (in
normalization.py
andgenerate_lcia_obj_ampl.py
) to be more explicit. - Inequality for equality constraints in the AMPL files (in
generate_lcia_obj_ampl.py
) in case there is no LCA objective function or constraint.
What has been removed?
- The
spatialized_database
argument of theESM
class. It is now set to True ifspatialized_biosphere_db
is notNone
.
1.1.1
What is new?
- Arguments
specific_lcia_methods
,specific_lcia_categories
andspecific_lcia_abbrev
in thenormalize_lca_metrics
(innormalization.py
) andgenerate_mod_file_ampl
(ingenerate_lcia_obj_ampl.py
) functions to specify the LCIA methods or impact categories to be used when generating the AMPL .mod and .dat files.
What has changed?
- Set the
refactor
parameter in thenormalize_lca_metrics
function (innormalization.py
) depending on theAoP
(inimpact_abbrev.csv
) rather than the impact category.
1.1.0
What is new?
- The function
change_direct_carbon_emissions_by_factor
(inmodify_inventory.py
) changes all direct carbon emissions by a factor. - The function
add_carbon_dioxide_flow
(inmodify_inventory.py
) adds a fossil carbon dioxide flow to an LCI dataset.
What has changed?
- Major update: the
mescal
package has been restructured from functional programming to object-oriented programming. The classesESM
(inesm.py
),Database
(indatabase.py
) andDataset
(indatabase.py
) have been created to perform operations on the ESM database, the LCI databases and the LCI datasets respectively. All functions from v1.0.3 are still available but have been reorganized in the classes.
1.0.3
What is new?
- The function
change_fossil_carbon_flows_of_biofuels
(inmodify_inventory.py
) changes fossil carbon emissions to biogenic carbon emissions if biofuels are used in the foreground. - Metadata has been added at the beginning of AMPL files (in
normalized_lca_metric
fromnormalization.py
andgenerate_lci_obj
fromgenerate_lci_obj_ampl.py
). - Correction of CA-QC heat flows in the ecoinvent database for global markets (in
remove_quebec_flow_in_global_heat_market
frommodify_inventory.py
). - Option added to check for duplicated activities in terms of (product, name, location) tuple when merging several databases (in
merge_databases
fromutils.py
). - A specific category for imports and exports has been added in
technology_specifics.csv
to avoid their regionalization to the ESM geography.
What has changed?
- The efficiency harmonization functions (in
adapt_efficiency.py
) can now accept multiple types of input flows instead of just one. - The arguments of the regionalization functions have been renamed to differentiate between regionalization and spatialization.
- Renamed AMPL files (by default,
techs_lcia.dat
andobjectives.mod
are used regardless of the LCIA method employed). - For AMPL files generation, the
refactor
parameter is computed based on the LCA indicator data rather than being a user input.
1.0.2
What is new?
- Regionalization of biosphere flows in the
regionalize_activity_foreground
function (fromregionalization.py
), and added conditions to prevent the regionalization when unnecessary. - Correction of efficiency differences between the ESM and LCI databases (scale direct emissions accordingly) in the
correct_esm_and_lca_efficiency_differences
function (fromadapt_efficiency.py
). - Option to return the database instead of writing it (or both) in the
create_esm_database
(fromdouble_counting.py
) andcreate_new_database_with_esm_results
(fromesm_back_to_lca.py
) functions.
What has changed?
concatenate_database
function renamed toload_multiple_databases
to avoid confusion with newmerge_databases
function (fromutils.py
).unit_conversion.csv
file has its columnsFrom
andTo
renamed toESM
andLCA
for better clarity.- Reformatted and added new information to the double-counting removal output csv files.
1.0.1
What is already available in mescal?
- Perform double-counting removal using the
create_esm_database
function (fromdouble_counting.py
). - Compute your LCA metrics for a set of impact categories using the
compute_impact_scores
function (fromimpact_assessment.py
). - Reformat results as
.mod
and.dat
files if you are using AMPL with thenormalize_lca_metrics
(fromnormalization.py
) andgen_lcia_obj
(fromgenerate_lci_obj_ampl.py
) functions. - Feed the ESM results back in the LCI database using the
create_new_database_with_esm_results
function (fromesm_back_to_lca.py
). - Add CPC categories to additional LCI datasets, e.g., from Premise, with the
create_new_database_with_CPC_categories
function (fromCPC.py
). - Relink a mapping to a new database using the
create_complementary_database
function (fromlink_to_premise.py
). - Relink a mapping to a new version of ecoinvent using the
change_ecoinvent_version_mapping
andupdate_unit_conversion_file
functions (change_ecoinvent.py
). - Regionalize the foreground of LCI datasets by setting
regionalize_foregrounds=True
in thecreate_esm_database
function (fromdouble_counting.py
).