10000 opt tests · henrypan/python-api@43f070f · GitHub
[go: up one dir, main page]

Skip to content

Commit 43f070f

Browse files
committed
opt tests
1 parent 7cbc04d commit 43f070f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

plotly/tests/test_optional/test_opt_tracefactory.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,3 @@ def test_simple_streamline(self):
9393
self.assertAlmostEqual(strmln['y'][0:100], expected_strmln_0_100['y'])
9494
self.assertAlmostEqual(strmln['x'][0:100], expected_strmln_0_100['x'])
9595

96-
def test_numpy_streamline(self):
97-
98-
# check that streamline results as expected when x, y, u and v are
99-
# defined with numpy (typical use)
100-
101-
x = np.linspace(-3, 3, 100)
102-
y = np.linspace(-3, 3, 100)
103-
Y, X = np.meshgrid(x, y)
104-
u = -1 - X**2 + Y
105-
v = 1 + X - Y**2
106-
streamline = tls.TraceFactory.create_streamline(x, y, u, v,
107-
arrow_scale=.1,
108-
density=3)
109-
expected_streamline = {
110-
'y': [0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393049198, 0.0018922002393044757, 0.0018922002393040316, 0.0018922002393022552, 0.0018922002392969262, 0.001892200239281383, 0.0018922002392334214, 0.0018922002390828752, 0.001892200238609476, 0.0018922002371390967, 0.0018922002325685305, 0.001892200218438056, 0.0018922001749084316, 0.0018922000414152151, 0.0018921996341290104, 0.0018921983989277358, 0.0018921946791010669, 0.0018921835702832013, 0.0018921507305122987, 0.0018920548629908218, 0.0018917794342634409, 0.0018910045248765606, 0.0018888860033485777, 0.001883330861293775, 0.00186969877142662, 0.0018400887882492611, 0.001792611800322419, 0.0017993604930395257, 0.0023459865813966196, 0.005768713743637743, 0.02122353426458945, 0.049323537523347394, 0.07755934266944609],
111-
'x': [1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645543, 1.000918273645544, 1.0009182736455449, 1.0009182736455466, 1.0009182736455546, 1.0009182736455813, 1.00091827364567, 1.0009182736459632, 1.0009182736469233, 1.00091827365008, 1.0009182736604547, 1.000918273694551, 1.000918273806616, 1.000918274174933, 1.0009182753854606, 1.0009182793640328, 1.0009182924401863, 1.000918335416853, 1.0009184766659116, 1.0009189409018102, 1.000920466685284, 1.000925481451195, 1.0009419639631494, 1.0009961490137123, 1.0011745163431298, 1.0017672338974037, 1.0039090426442545, 1.0110879873093834, 1.0202616741544626],
112-
'type': 'scatter',
113-
'mode': 'lines'
114-
}
115-
self.assertAlmostEqual(streamline['y'][0:100], expected_streamline['y'])
116-
self.assertAlmostEqual(streamline['x'][0:100], expected_streamline['x'])

0 commit comments

Comments
 (0)
0