Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get dev tests to pass #93

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lcviz/tests/test_viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ def test_reset_limits(helper, light_curve_like_kepler_quarter):

orig_xlims = (tv.state.x_min, tv.state.x_max)
orig_ylims = (tv.state.y_min, tv.state.y_max)
# set xmin and ymin to midpoints
# set xmin and ymax to midpoints
new_xmin = (tv.state.x_min + tv.state.x_max) / 2
new_ymin = (tv.state.y_min + tv.state.y_max) / 2
new_ymax = (tv.state.y_min + tv.state.y_max) / 2
tv.state.x_min = new_xmin
tv.state.y_min = new_ymin
tv.state.y_max = new_ymax

tv.state._reset_x_limits()
assert tv.state.x_min == orig_xlims[0]
assert tv.state.y_min == new_ymin
assert tv.state.y_max == new_ymax

tv.state._reset_y_limits()
assert tv.state.y_min == orig_ylims[0]
assert tv.state.y_max == orig_ylims[1]


def test_clone(helper, light_curve_like_kepler_quarter):
Expand Down
Loading