Skip to content

Commit

Permalink
converted impact categories as strings if they are given as tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-str committed Jan 28, 2025
1 parent b5d43bc commit 6fe8d76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mescal/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def __init__(
self.esm_results_res = esm_results_res
self.lifetime = lifetime

# The following methods are designed with impact categories as strings
if type(self.df_impact_scores.Impact_category.iloc[0]) is tuple:
self.df_impact_scores['Impact_category'] = self.df_impact_scores['Impact_category'].apply(str)

def plot_indicators_of_technologies_for_one_impact_category(
self,
technologies_list: list[str],
Expand Down

0 comments on commit 6fe8d76

Please sign in to comment.