mescal.regionalization ====================== .. py:module:: mescal.regionalization Functions --------- .. autoapisummary:: mescal.regionalization._change_location_activity mescal.regionalization._regionalize_activity_foreground mescal.regionalization.change_location_mapping_file Module Contents --------------- .. py:function:: _change_location_activity(self, activity: str, location: str, database: str, technosphere_or_biosphere_db: mescal.database.Database, esm_tech_name: str = None, product: str = None, categories: tuple = None, activity_type: str = 'technosphere') -> str Changes the location of a process given a ranking of preferred locations :param esm_tech_name: name of the technology or resource in the ESM :param product: name of the product in the LCI database for technosphere flows :param activity: name of the activity in the LCI database :param location: initial location of the process :param database: name of the database in the Brightway project :param activity_type: type of activity, can be 'technosphere' or 'biosphere' :param categories: name of the categories in the LCI database (for biosphere flows only) :param technosphere_or_biosphere_db: technosphere or biosphere LCI database, depending on activity_type :return: the highest available location within the ranking, or the initial location is any of the listed locations is available .. py:function:: _regionalize_activity_foreground(self, act: dict) -> dict Regionalize a foreground activity according to the user ranking of locations :param act: activity to regionalize :return: the regionalized activity .. py:function:: change_location_mapping_file(self) -> None Changes the location of a process given a mapping file :return: None