Skip to content

Commit

Permalink
name ksize parameter in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Sep 2, 2024
1 parent af15fa4 commit 028e76c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Import necessary modules:
Create a KmerCountTable with a k-mer size of 31:

```python
>>> counts = oxli.KmerCountTable(31)
>>> counts = oxli.KmerCountTable(ksize=31)

```

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct KmerCountTable {
#[pymethods]
impl KmerCountTable {
#[new]
#[pyo3(signature = (ksize))]
pub fn new(ksize: u8) -> Self {
Self {
counts: HashMap::new(),
Expand Down

0 comments on commit 028e76c

Please sign in to comment.