Skip to content

Commit

Permalink
Merge pull request #18 from padix-key/performance
Browse files Browse the repository at this point in the history
Use new PyO3 API to improve performance
  • Loading branch information
padix-key authored Aug 26, 2024
2 parents 68d6053 + 089a8c2 commit bfd4283
Show file tree
Hide file tree
Showing 5 changed files with 470 additions and 573 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = "1.3.1"
edition = "2018"

[dependencies]
numpy = "0.20"
ndarray = "0.15"
numpy = "0.21"
ndarray = "0.16"

[dependencies.pyo3]
version = "0.20"
version = "0.21"
features = ["extension-module"]

[lib]
Expand Down
4 changes: 2 additions & 2 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import matplotlib.ticker as ticker
import numpy as np
import biotite.database.rcsb as rcsb
import biotite.structure.info as info
import biotite.structure.io.pdb as pdb
from biotite.structure.info.ccd import get_ccd
import fastpdb


Expand All @@ -17,7 +17,7 @@

# Call this function before the benchmark
# to avoid a bias due to the initial loading time
info.bond_dataset()
get_ccd()


pdb_file_path = rcsb.fetch(PDB_ID, "pdb", tempfile.gettempdir())
Expand Down
Loading

0 comments on commit bfd4283

Please sign in to comment.