forked from pool/python-plotly
Matej Cepl
3ff6df948c
- Update to version 5.11.0 * Add clustering options to scattermapbox [#5827], with thanks to @elben10 for the contribution! * Add bounds to mapbox suplots [6339] * Add angle, angleref and standoff to marker and add backoff to line; also introduce new arrow symbols to facilitate drawing networks [#6297] * Add minreducedwidth and minreducedheight to layout for increasing control over automargin [#6307] * Add entrywidth and entrywidthmode to legend [#6202, #6324] - Add patches for compatibility with numpy 1.24 * plotly-fix-sources-np1.24.patch * plotly-fix-tests-np1.24.patch OBS-URL: https://build.opensuse.org/request/show/1045226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-plotly?expand=0&rev=51
51 lines
2.5 KiB
Diff
51 lines
2.5 KiB
Diff
Index: plotly.py-5.11.0/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
|
|
===================================================================
|
|
--- plotly.py-5.11.0.orig/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
|
|
+++ plotly.py-5.11.0/packages/python/plotly/plotly/tests/test_optional/test_px/test_imshow.py
|
|
@@ -9,7 +9,7 @@ import datetime
|
|
from plotly.express.imshow_utils import rescale_intensity
|
|
|
|
img_rgb = np.array([[[255, 0, 0], [0, 255, 0], [0, 0, 255]]], dtype=np.uint8)
|
|
-img_gray = np.arange(100, dtype=np.float).reshape((10, 10))
|
|
+img_gray = np.arange(100, dtype=float).reshape((10, 10))
|
|
|
|
|
|
def decode_image_string(image_string):
|
|
@@ -47,7 +47,7 @@ def test_automatic_zmax_from_dtype():
|
|
dtypes_dict = {
|
|
np.uint8: 2**8 - 1,
|
|
np.uint16: 2**16 - 1,
|
|
- np.float: 1,
|
|
+ float: 1,
|
|
bool: 255,
|
|
}
|
|
for key, val in dtypes_dict.items():
|
|
Index: plotly.py-5.11.0/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
|
|
===================================================================
|
|
--- plotly.py-5.11.0.orig/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
|
|
+++ plotly.py-5.11.0/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py
|
|
@@ -58,7 +58,7 @@ def test_acceptance_min_max(val, validat
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
- "val", [-1.01, -10, 2.1, 3, np.iinfo(np.int).max, np.iinfo(np.int).min]
|
|
+ "val", [-1.01, -10, 2.1, 3, np.iinfo(int).max, np.iinfo(int).min]
|
|
)
|
|
def test_rejection_min_max(val, validator_min_max):
|
|
with pytest.raises(ValueError) as validation_failure:
|
|
Index: plotly.py-5.11.0/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
|
|
===================================================================
|
|
--- plotly.py-5.11.0.orig/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
|
|
+++ plotly.py-5.11.0/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py
|
|
@@ -414,8 +414,8 @@ class TestNumpyIntegerBaseType(TestCase)
|
|
import plotly.graph_objects as go
|
|
from plotly.subplots import make_subplots
|
|
|
|
- indices_rows = np.array([1], dtype=np.int)
|
|
- indices_cols = np.array([1], dtype=np.int)
|
|
+ indices_rows = np.array([1], dtype=int)
|
|
+ indices_cols = np.array([1], dtype=int)
|
|
fig = make_subplots(rows=1, cols=1)
|
|
fig.add_trace(go.Scatter(y=[1]), row=indices_rows[0], col=indices_cols[0])
|
|
|