Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide-sd committed Feb 7, 2024
1 parent 518c55d commit e5ea5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spb/interactive/bootstrap_spb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class SymPyBootstrapTemplate(BootstrapTemplate):
# TODO: uncomment this and remove the bigger __init__ when this
# issue gets resolved:
# https://github.com/holoviz/panel/issues/6275

# def __init__(self, *args, **kwargs):
# super().__init__(*args, **kwargs)
# self.add_variable("sidebar_location", self.sidebar_location)
Expand All @@ -48,9 +47,10 @@ class SymPyBootstrapTemplate(BootstrapTemplate):
# self.add_variable("show_header", self.show_header)

def __init__(self, *args, **params):
from panel.io.notifications import NotificationArea
from panel.io.resources import _env, parse_template
from panel.io.state import state
from pathlib import Path
from pathlib import Path, PurePath
import jinja2
from panel.layout import ListLike
from panel.theme.base import THEMES
Expand Down
7 changes: 4 additions & 3 deletions tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -4051,10 +4051,11 @@ def f(x):
# each element of the array `x`.
# 3. The expected output will be created.
t = symbols("t")

def g(x):
return nsolve(sin(t) - x, t, 0)

s = LineOver1DRangeSeries(g, (t, -1, 1), adaptive=False, n=5)
x, y = s.get_data()
assert np.allclose(x, [-1. , -0.5, 0. , 0.5, 1. ])
assert np.allclose(y, [-1.57079581, -0.52359878, 0., 0.52359878, 1.57079583])

assert np.allclose(x, [-1., -0.5, 0., 0.5, 1.])
assert np.allclose(y, [-1.57079581, -0.52359878, 0., 0.52359878, 1.57079583])

0 comments on commit e5ea5ac

Please sign in to comment.