Skip to content

Commit be4245a

Browse files
committed
remove " "
1 parent 409bdce commit be4245a

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

adaptive/learner/learnerND.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ def plot_slice(self, cut_mapping, n=None):
849849
return hv.Scatter([]) * hv.Path([])
850850
elif self.vdim > 1:
851851
raise NotImplementedError(
852-
"multidimensional output not yet" " supported by `plot_slice`"
852+
"multidimensional output not yet supported by `plot_slice`"
853853
)
854854
n = n or 201
855855
values = [
@@ -869,7 +869,7 @@ def plot_slice(self, cut_mapping, n=None):
869869
elif plot_dim == 2:
870870
if self.vdim > 1:
871871
raise NotImplementedError(
872-
"holoviews currently does not support" " 3D surface plots in bokeh."
872+
"holoviews currently does not support 3D surface plots in bokeh."
873873
)
874874
if n is None:
875875
# Calculate how many grid points are needed.
@@ -1001,7 +1001,7 @@ def _get_iso(self, level=0.0, which="surface"):
10011001
elif which == "line":
10021002
if self.ndim != 2 or self.vdim != 1:
10031003
raise Exception(
1004-
"Isoline plotting is only supported" " for a 2D input and 1D output"
1004+
"Isoline plotting is only supported for a 2D input and 1D output"
10051005
)
10061006
get_surface = False
10071007
get_line = True

adaptive/runner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ def __init__(
379379
raise_if_retries_exceeded=True,
380380
):
381381
if inspect.iscoroutinefunction(learner.function):
382-
raise ValueError(
383-
"Coroutine functions can only be used " "with 'AsyncRunner'."
384-
)
382+
raise ValueError("Coroutine functions can only be used with 'AsyncRunner'.")
385383
super().__init__(
386384
learner,
387385
goal,
@@ -549,7 +547,7 @@ def goal(_):
549547
if inspect.iscoroutinefunction(learner.function):
550548
if executor: # user-provided argument
551549
raise RuntimeError(
552-
"Cannot use an executor when learning an " "async function."
550+
"Cannot use an executor when learning an async function."
553551
)
554552
self.executor.shutdown() # Make sure we don't shoot ourselves later
555553

0 commit comments

Comments
 (0)