Skip to content

Commit

Permalink
Merge pull request #38 from harmsm/main
Browse files Browse the repository at this point in the history
updated for pandas 2
  • Loading branch information
harmsm authored Apr 4, 2023
2 parents f20da7e + 6a899a2 commit 86913d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs/badges/ghwf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions topiary/_private/check/topiary_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def check_topiary_dataframe(df):
# Validate this as a boolean column
df.loc[:,"keep"] = column_to_bool(df.loc[:,"keep"],"keep")

# Force it to really be bool
df = df.astype({"keep":bool})

# -------------------------------------------------------------------------
# Process uid column

Expand Down
2 changes: 1 addition & 1 deletion topiary/ncbi/entrez/proteome.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_proteome(taxid=None,species=None):
# Now get summary data for these records.
esummary_query = ",".join(returned_ids)
esummary_handle = Entrez.esummary(db="assembly",id=esummary_query)
esummary_record = Entrez.read(esummary_handle)
esummary_record = Entrez.read(esummary_handle,validate=False)

try:
records = esummary_record["DocumentSummarySet"]["DocumentSummary"]
Expand Down

0 comments on commit 86913d4

Please sign in to comment.