Skip to content

Commit 94eb632

Browse files
committed
fix "DeprecationWarning: invalid escape sequence \s"
1 parent 6e3e985 commit 94eb632

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adaptive/learner/learner2D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def remove_unfinished(self):
501501
self._stack[p] = np.inf
502502

503503
def plot(self, n=None, tri_alpha=0):
504-
"""Plot the Learner2D's current state.
504+
r"""Plot the Learner2D's current state.
505505
506506
This plot function interpolates the data on a regular grid.
507507
The gridspacing is evaluated by checking the size of the smallest

adaptive/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _default_executor(*args, **kwargs):
5555

5656

5757
class BaseRunner(metaclass=abc.ABCMeta):
58-
"""Base class for runners that use `concurrent.futures.Executors`.
58+
r"""Base class for runners that use `concurrent.futures.Executors`.
5959
6060
Parameters
6161
----------
@@ -369,7 +369,7 @@ def elapsed_time(self):
369369

370370

371371
class AsyncRunner(BaseRunner):
372-
"""Run a learner asynchronously in an executor using `asyncio`.
372+
r"""Run a learner asynchronously in an executor using `asyncio`.
373373
374374
Parameters
375375
----------

0 commit comments

Comments
 (0)