You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updating moving target functionality and test coverage for get_sectors, download_cutouts, and get_cutouts. also fixing import statements and other typos.
# Check that objectname has been passed in and coordinates
159
+
# is not
159
160
ifcoordinates:
160
-
raiseInvalidQueryError("Only one of moving_target and coordinates may be specified.")
161
+
raiseInvalidQueryError("Only one of moving_target and coordinates may be specified. Please remove coordinates if using moving_target and objectname.")
161
162
162
163
ifnotobjectname:
163
164
raiseInvalidQueryError("Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet.")
# Check that objectname has been passed in and coordinates
265
+
# is not
266
+
ifcoordinates:
267
+
raiseInvalidQueryError("Only one of moving_target and coordinates may be specified. Please remove coordinates if using moving_target and objectname.")
268
+
269
+
ifnotobjectname:
270
+
raiseInvalidQueryError("Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet.")
# Check only on object designator has been passed in
368
-
ifobjectnameorcoordinates:
369
-
raiseInvalidQueryError("Only one of objectname, coordinates, and moving_target may be specified.")
375
+
# Check that objectname has been passed in and coordinates
376
+
# is not
377
+
ifcoordinates:
378
+
raiseInvalidQueryError("Only one of moving_target and coordinates may be specified. Please remove coordinates if using moving_target and objectname.")
379
+
380
+
ifnotobjectname:
381
+
raiseInvalidQueryError("Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet.")
error_noname="Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet."
719
+
error_nameresolve=f"Could not resolve {moving_target_name} to a sky position."
720
+
error_mt_coord="Only one of moving_target and coordinates may be specified."
721
+
error_name_coord="Only one of objectname and coordinates may be specified."
error_noname="Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet."
803
+
error_nameresolve=f"Could not resolve {moving_target_name} to a sky position."
804
+
error_mt_coord="Only one of moving_target and coordinates may be specified."
805
+
error_name_coord="Only one of objectname and coordinates may be specified."
error_noname="Please specify the object name or ID (as understood by the `JPL ephemerides service <https://ssd.jpl.nasa.gov/horizons.cgi>`__) of a moving target such as an asteroid or comet."
869
+
error_nameresolve=f"Could not resolve {moving_target_name} to a sky position."
870
+
error_mt_coord="Only one of moving_target and coordinates may be specified."
871
+
error_name_coord="Only one of objectname and coordinates may be specified."
0 commit comments