Skip to content

Commit a6881b8

Browse files
author
Kit Schwarz
committed
additional fixes
1 parent 83dab9b commit a6881b8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dscim/diagnostics/compare_sccs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def compare_sccs(
2525
this = this.sel(
2626
gas="CO2_Fossil", model="IIASA GDP", rcp="ssp370", drop=True
2727
).rename({"simulation": "runid"})
28-
except:
28+
except KeyError:
2929
# for rff calculations
3030
if ("simulation" in this.dims) and (len(this.simulation) == 1):
3131
this = this.sel(simulation=1, drop=True)

dscim/diagnostics/stacked_damage_function.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import pandas as pd
33
import numpy as np
44
import seaborn as sns
5-
import os, sys
5+
import os
6+
import sys
67
import matplotlib.pyplot as plt
78
from dscim.diagnostics.damage_function import damage_function
89

dscim/menu/main_recipe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import dask
33
import logging
44
import subprocess
5+
from subprocess import CalledProcessError
56
from abc import ABC, abstractmethod
67
import numpy as np
78
import pandas as pd

0 commit comments

Comments
 (0)