Skip to content

Commit

Permalink
fix: replace np.bool with bool
Browse files Browse the repository at this point in the history
  • Loading branch information
alee committed Jun 4, 2024
1 parent a5b7688 commit e73a316
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM comses/base
FROM comses/base:jammy

RUN apt-get update && apt-get install -qq -y libxml2-dev python3-dev python3-pip libxslt1-dev curl git wget \
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" | tee /etc/apt/sources.list.d/postgresql.list \
Expand Down
2 changes: 1 addition & 1 deletion citation/export_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def get_sponsors(publications):

def _create_publication_dummies(publication_related_df: pd.DataFrame, related_df: pd.DataFrame, index_name):
df = publication_related_df.set_index(index_name).join(related_df)
df = pd.get_dummies(df['name'], dtype=np.bool8).set_index(df['publication_id']).groupby(
df = pd.get_dummies(df['name'], dtype=bool).set_index(df['publication_id']).groupby(
'publication_id').any().astype(np.uint8)
return df

Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ pyparsing==2.4.7
python-Levenshtein>=0.12,<0.13
python-dateutil==2.8.1
Pyzotero==1.4.16
requests==2.23.0
requests==2.32.3
Unidecode==1.0.23

invoke
numpy
scipy

0 comments on commit e73a316

Please sign in to comment.