Skip to content

Commit

Permalink
temporary maxpin for numpy<2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Jun 18, 2024
1 parent 72927e3 commit 09c9d24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lcviz/tests/test_plugin_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions lcviz/tests/test_plugin_stitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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']
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies = [
# to devdeps in tox.ini
"jdaviz>=3.10.2,<3.11",
"lightkurve>=2.4.1",
"numpy<2",
]
dynamic = [
"version",
Expand Down

0 comments on commit 09c9d24

Please sign in to comment.