File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import math
2
2
3
- import pytest
4
3
import numpy as np
4
+ import pytest
5
5
from scipy.spatial import ConvexHull
6
6
7
7
from adaptive.learner import LearnerND
@@ -60,9 +60,10 @@ def test_learnerND_log_works():
60
60
61
61
@pytest.mark.skipif(not with_pandas, reason="pandas is not installed")
62
62
def test_learnerND_resume_after_loading_dataframe_convex_hull(monkeypatch):
63
- import pandas
64
63
from types import MethodType
65
64
65
+ import pandas
66
+
66
67
hull_points = [
67
68
(4.375872112626925, 8.917730007820797),
68
69
(4.236547993389047, 6.458941130666561),
@@ -98,7 +99,9 @@ def some_f(xy):
98
99
99
100
def old_ask_bound_point(self):
100
101
new_point = next(
101
- p for p in self._bounds_points if p not in self.data and p not in self.pending_points
102
+ p
103
+ for p in self._bounds_points
104
+ if p not in self.data and p not in self.pending_points
102
105
)
103
106
self.tell_pending(new_point)
104
107
return new_point, np.inf
You can’t perform that action at this time.
0 commit comments