Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuchen1030 committed Jun 30, 2023
1 parent 741e1ba commit 82cd251
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,20 @@ def test_pt_within_gcr(self):

# The GCR that's eexactly 180 degrees will have Value Error raised
gcr_180degree_cart = [
ux.utils.helpers.node_lonlat_rad_to_xyz([0, 0]),
ux.utils.helpers.node_lonlat_rad_to_xyz([np.pi, 0])
ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, 0.0]),
ux.utils.helpers.node_lonlat_rad_to_xyz([np.pi, 0.0])
]
pt_same_lon_in = ux.utils.helpers.node_lonlat_rad_to_xyz([0, 0])
pt_same_lon_in = ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, 0.0])
with self.assertRaises(ValueError):
ux.utils.helpers.point_within_GCR(pt_same_lon_in,
gcr_180degree_cart)

gcr_180degree_cart = [
ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, np.pi / 2]),
ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, -np.pi / 2])
ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, np.pi / 2.0]),
ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, -np.pi / 2.0])
]

pt_same_lon_in = ux.utils.helpers.node_lonlat_rad_to_xyz([0, 0])
pt_same_lon_in = ux.utils.helpers.node_lonlat_rad_to_xyz([0.0, 0.0])
with self.assertRaises(ValueError):
ux.utils.helpers.point_within_GCR(pt_same_lon_in,
gcr_180degree_cart)
Expand Down

0 comments on commit 82cd251

Please sign in to comment.