Skip to content

Commit

Permalink
Fix precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuchen1030 committed Aug 9, 2023
1 parent 1189d4f commit 78acb1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uxarray/grid/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def point_within_GCA(pt, gca_cart):
# The necessary condition: the pt longitude is on the opposite side of the anti-meridian
# Case 2: The anti-meridian case where 180 -->x0 --> 0 lon --> x1 --> 180 lon
elif 2 * np.pi > GCRv0_lonlat[0] > np.pi > GCRv1_lonlat[0] > 0:
return in_between(GCRv0_lonlat[0], pt_lonlat[0], 2 * np.pi) or in_between(0, pt_lonlat[0], GCRv1_lonlat[0])
return in_between(GCRv0_lonlat[0],
pt_lonlat[0], 2 * np.pi) or in_between(
0, pt_lonlat[0], GCRv1_lonlat[0])

# The non-anti-meridian case.
else:
Expand Down

0 comments on commit 78acb1b

Please sign in to comment.