Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60e0a0c

Browse filesBrowse files
committed
correct conditional
1 parent bb38de3 commit 60e0a0c
Copy full SHA for 60e0a0c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎adaptive/domain.py

Copy file name to clipboardExpand all lines: adaptive/domain.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def subdomains(self):
316316
return zip(p, p.islice(1))
317317

318318
def subpoints(self, subdomain, *, _check_membership=True):
319-
if _check_membership and self.contains_subdomain(subdomain):
319+
if _check_membership and not self.contains_subdomain(subdomain):
320320
raise ValueError("{} is not present in this interval".format(subdomain))
321321
try:
322322
p = self.sub_intervals[subdomain]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.