Skip to content

fix: intersect() with mismtached chrom#191

Merged
ovesh merged 6 commits intomainfrom
fix/ops-on-mismatched-intervals
Nov 25, 2025
Merged

fix: intersect() with mismtached chrom#191
ovesh merged 6 commits intomainfrom
fix/ops-on-mismatched-intervals

Conversation

@ovesh
Copy link
Contributor

@ovesh ovesh commented Nov 23, 2025

fixes #189

- "src/**"
- "tests/**"


Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #192

#define GKPY_INTERVAL_BOOL_METHOD_ONEARG(pyname, method) \
GKPY_METHOD_BEGIN_ONEARG(pyname, method) \
const Py##pyname::value_t& c = Py##pyname::value(selfo); \
#define GKPY_INTERVAL_BOOL_METHOD_ONEARG(method) \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive by. This macro is only ever used for PyInterval

@ovesh ovesh changed the title fix: binary interval ops with mismtached chrom/strand/genome fix: intersect() with mismtached chrom Nov 24, 2025

self.assertTrue(c.upstream_of(a))
self.assertFalse(b.upstream_of(a))
self.assertTrue(a.overlaps(b))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a new test interval just so we can have a overlap == false test

@ovesh ovesh merged commit 8c59110 into main Nov 25, 2025
11 checks passed
@ovesh ovesh deleted the fix/ops-on-mismatched-intervals branch November 25, 2025 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interval.intersect() doesn't checkagainst different chromosome

2 participants