From 783fd3bd294a1469da8c868d43dbb3c3aa8535ef Mon Sep 17 00:00:00 2001 From: TimoDiepers Date: Fri, 12 Jul 2024 10:32:58 +0200 Subject: [PATCH] remove unnecessary attributes --- bw_timex/dynamic_characterization.py | 16 ---------------- bw_timex/timex_lca.py | 4 ---- 2 files changed, 20 deletions(-) diff --git a/bw_timex/dynamic_characterization.py b/bw_timex/dynamic_characterization.py index 805f579..35b93c0 100644 --- a/bw_timex/dynamic_characterization.py +++ b/bw_timex/dynamic_characterization.py @@ -19,10 +19,6 @@ class DynamicCharacterization: def __init__( self, dynamic_inventory_df: pd.DataFrame, - activity_dict: dict, - biosphere_dict: dict, - activity_time_mapping_dict_reversed: dict, - biosphere_time_mapping_dict_reversed: dict, demand_timing_dict: dict, temporal_grouping: dict, method: tuple, @@ -38,14 +34,6 @@ def __init__( ---------- dynamic_inventory_df : pd.DataFrame Dynamic inventory, formatted as a DataFrame, which contains the timing, id and amount of emissions and the emitting activity. - activity_dict : dict - Dictionary mapping activity ids to their matrix index - biosphere_dict : dict - Dictionary mapping biosphere flow ids to their matrix index - activity_time_mapping_dict_reversed : dict - Reversed `activity_time_mapping_dict`: {time_mapping_id: ((('database', 'code'), datetime_as_integer)} - biosphere_time_mapping_dict_reversed : dict - Reversed `biosphere_time_mapping_dict`: {time_mapping_id: ((('database', 'code'), datetime_as_integer)} demand_timing_dict : dict A dictionary mapping the demand(s) to its timing temporal_grouping : str @@ -61,10 +49,6 @@ def __init__( """ self.dynamic_inventory_df = dynamic_inventory_df - self.activity_dict = activity_dict - self.biosphere_dict = biosphere_dict - self.activity_time_mapping_dict_reversed = activity_time_mapping_dict_reversed - self.biosphere_time_mapping_dict_reversed = biosphere_time_mapping_dict_reversed self.demand_timing_dict = demand_timing_dict self.temporal_grouping = temporal_grouping self.method = method diff --git a/bw_timex/timex_lca.py b/bw_timex/timex_lca.py index 853a038..8a21ac0 100644 --- a/bw_timex/timex_lca.py +++ b/bw_timex/timex_lca.py @@ -389,10 +389,6 @@ def dynamic_lcia( self.dynamic_characterizer = DynamicCharacterization( self.dynamic_inventory_df, - self.dicts.activity, - self.dicts.biosphere, - self.activity_time_mapping_dict_reversed, - self.biosphere_time_mapping_dict_reversed, self.demand_timing_dict, self.temporal_grouping, self.method,