From 09c9d24ab1ab9d14d00852a950b0d4acd06b628f Mon Sep 17 00:00:00 2001 From: "Brett M. Morris" Date: Tue, 18 Jun 2024 16:40:05 -0400 Subject: [PATCH] temporary maxpin for numpy<2.0 --- lcviz/tests/test_plugin_markers.py | 4 ++-- lcviz/tests/test_plugin_stitch.py | 4 ++-- pyproject.toml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lcviz/tests/test_plugin_markers.py b/lcviz/tests/test_plugin_markers.py index 85350cf..b185373 100644 --- a/lcviz/tests/test_plugin_markers.py +++ b/lcviz/tests/test_plugin_markers.py @@ -51,7 +51,7 @@ def test_plugin_markers(helper, light_curve_like_kepler_quarter): 'Time 5.45833e+00 d', 'Flux 9.67587e-01') - _assert_dict_allclose(label_mouseover.as_dict(), {'data_label': 'Light curve', + _assert_dict_allclose(label_mouseover.as_dict(), {'data_label': 'Light curve [Q10]', 'time': 5.4583335, 'time:unit': 'd', 'phase': np.nan, @@ -81,7 +81,7 @@ def test_plugin_markers(helper, light_curve_like_kepler_quarter): 'Phase 0.45833', 'Flux 9.67587e-01') - _assert_dict_allclose(label_mouseover.as_dict(), {'data_label': 'Light curve', + _assert_dict_allclose(label_mouseover.as_dict(), {'data_label': 'Light curve [Q10]', 'time': 5.458333374001086, 'time:unit': 'd', 'phase': 0.4583333730697632, diff --git a/lcviz/tests/test_plugin_stitch.py b/lcviz/tests/test_plugin_stitch.py index 6beffef..cf0e1e3 100644 --- a/lcviz/tests/test_plugin_stitch.py +++ b/lcviz/tests/test_plugin_stitch.py @@ -5,7 +5,7 @@ def test_docs_snippets(helper, light_curve_like_kepler_quarter): lcviz.load_data(lc1, 'lc1') lcviz.load_data(lc2, 'lc2') - lcviz.app.add_data_to_viewer('flux-vs-time', 'lc2') + lcviz.app.add_data_to_viewer('flux-vs-time', 'lc2 [Q10]') # lcviz.show() stitch = lcviz.plugins['Stitch'] @@ -21,7 +21,7 @@ def test_plugin_stitch(helper, light_curve_like_kepler_quarter): assert "Stitch" not in helper.plugins.keys() helper.load_data(light_curve_like_kepler_quarter.copy(), 'lc2') - helper.app.add_data_to_viewer('flux-vs-time', 'lc2') + helper.app.add_data_to_viewer('flux-vs-time', 'lc2 [Q10]') assert "Stitch" in helper.plugins.keys() stitch = helper.plugins['Stitch'] diff --git a/pyproject.toml b/pyproject.toml index fd7c070..1959839 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ dependencies = [ # to devdeps in tox.ini "jdaviz>=3.10.2,<3.11", "lightkurve>=2.4.1", + "numpy<2", ] dynamic = [ "version",