Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 694b8aa

Browse files
committed
Updated test_trisurf_all_args to pass
1 parent 7a15095 commit 694b8aa

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,14 +689,14 @@ def test_trisurf_all_args(self):
689689
exp_trisurf_plot = {
690690
'data': [
691691
{
692-
'facecolor': ['rgb(143.0, 123.0, 97.000000000000014)',
693-
'rgb(255.0, 127.0, 14.000000000000007)',
694-
'rgb(143.0, 123.0, 97.000000000000014)',
692+
'facecolor': ['rgb(143.0, 123.0, 97.0)',
693+
'rgb(255.0, 127.0, 14.0)',
694+
'rgb(143.0, 123.0, 97.0)',
695695
'rgb(31.0, 119.0, 180.0)',
696-
'rgb(143.0, 123.0, 97.000000000000014)',
696+
'rgb(143.0, 123.0, 97.0)',
697697
'rgb(31.0, 119.0, 180.0)',
698-
'rgb(143.0, 123.0, 97.000000000000014)',
699-
'rgb(255.0, 127.0, 14.000000000000007)'],
698+
'rgb(143.0, 123.0, 97.0)',
699+
'rgb(255.0, 127.0, 14.0)'],
700700
'i': [3, 1, 1, 5, 7, 3, 5, 7],
701701
'j': [1, 3, 5, 1, 3, 7, 7, 5],
702702
'k': [4, 0, 4, 2, 4, 6, 4, 8],
@@ -753,6 +753,17 @@ def test_trisurf_all_args(self):
753753
self.assert_dict_equal(test_trisurf_plot['data'][1],
754754
exp_trisurf_plot['data'][1])
755755

756+
def test_optimize_trisurf(self):
757+
758+
# check that trisurf will give warnings if the plotting will take
759+
# a long time
760+
761+
pass
762+
763+
764+
765+
766+
756767

757768
class TestScatterPlotMatrix(NumpyTestUtilsMixin, TestCase):
758769

plotly/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,8 +1567,8 @@ def _trisurf(x, y, z, simplices, colormap=None, dist_func=None,
15671567
is_none = [ii is None for ii in [x_edge, y_edge, z_edge]]
15681568
if any(is_none):
15691569
if not all(is_none):
1570-
raise ValueError('If any (x_edge, y_edge, z_edge) is None,'
1571-
' all must be None')
1570+
raise ValueError("If any (x_edge, y_edge, z_edge) is None, "
1571+
"all must be None")
15721572
else:
15731573
x_edge = []
15741574
y_edge = []

0 commit comments

Comments
 (0)