Skip to content

Commit ae03a7c

Browse files
committed
Add "xlrd" to "material" optional dependencies
1 parent 8a0b980 commit ae03a7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

message_ix_models/model/material/data_aluminum.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,7 @@ def gen_hist_new_cap(s_info):
804804
dict
805805
Dictionary with 'historical_new_capacity' and 'fixed_new_capacity' DataFrames.
806806
"""
807+
# NB Because this is (older) .xls and not .xlsx, the 'xlrd' package is required
807808
df_cap = pd.read_excel(
808809
package_data_path(
809810
"material", "aluminum", "raw", "smelters-with 2022 projection.xls"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ docs = [
6262
"sphinxcontrib-bibtex",
6363
]
6464
iea-web = ["dask[dataframe]"]
65+
material = ["xlrd"]
6566
migrate = [
6667
"git-filter-repo",
6768
"GitPython",
@@ -70,7 +71,7 @@ report = ["plotnine", "xlsxwriter"]
7071
tests = [
7172
"ixmp[tests]", # TODO Remove once message_ix[tests] depends on ixmp[tests]
7273
"message-ix[tests]",
73-
"message_ix_models[report,transport]",
74+
"message_ix_models[material,report,transport]",
7475
"pytest",
7576
"pytest-cov",
7677
"pytest-timeout",

0 commit comments

Comments
 (0)