Skip to content

Commit

Permalink
Remove dependency of python-snappy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleschutz committed Jul 9, 2021
1 parent 6b36e9e commit 05748d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion elmada/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.3"
__version__ = "0.0.4"
4 changes: 2 additions & 2 deletions elmada/cc_share.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_ccgt_shares_from_cascade():
wiki = get_wiki_shares(cache=True).rename("manual")
opsd = pd.Series({"DE": get_ccgt_DE()}).rename("opsd")

df = pd.concat([wiki, rich_geo, opsd], 1, sort=False)
df = pd.concat([wiki, rich_geo, opsd], axis=1, sort=False)

def select_source(row):
if not np.isnan(row["opsd"]):
Expand Down Expand Up @@ -293,7 +293,7 @@ def get_ccgt_IT():
df2 = pd.DataFrame.from_dict(is_ccgt, "index", columns=["is_ccgt", "source"]).reset_index(
drop=True
)
df = pd.concat([df, df2], 1)
df = pd.concat([df, df2], axis=1)
df["is_ccgt"] = df["is_ccgt"].astype("float")

return (df[cap_col] * df["is_ccgt"]).sum() / df[cap_col].sum()
Expand Down
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies: # NOTE: here '=' (single)
- pytest
- pytest-cov
- pytest-mock
- python-snappy
- python>=3.7
- quandl
- requests
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def get_extra_requires(path, add_all=True):
"numpy",
"pandas",
"pyarrow",
"python-snappy",
"quandl",
"requests",
"scipy",
Expand Down

0 comments on commit 05748d0

Please sign in to comment.