Skip to content

Commit

Permalink
export new functionality from nested_intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Mar 8, 2024
1 parent f99ebd2 commit ea8a808
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mbf_nested_intervals"
version = "0.3.0"
version = "0.3.1"
authors = ["Florian Finkernagel <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion mbf_nested_intervals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pandas as pd
import itertools

__version__ = "0.3.0"
__version__ = "0.3.1"


def _df_to_tup(df):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
name = mbf_nested_intervals
description = wrapper around https://crates.io/crates/nested_intervals
version = 0.3.0
version = 0.3.1
author = Florian Finkernagel
author-email = [email protected]
license = mit
Expand Down
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,16 @@ impl PyIntervalSet {
let ivs: Vec<_> = other.iter().map(|x| &x.inner).collect();
return_interval_set(py, self.inner.filter_to_overlapping_k_others(&ivs, max_k))
}

pub fn filter_to_overlapping_and_split(
&mut self,
py: Python,
other: &PyIntervalSet,
) -> PyResult<Py<PyIntervalSet>> {
return_interval_set(py, self.inner.filter_to_overlapping_and_split(&other.inner))
}


}

/// Wrapper around nested intervals
Expand Down

0 comments on commit ea8a808

Please sign in to comment.