Unverified Commit b3849340 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Make offset work without setpoint

parent 86b56fe0
......@@ -24,6 +24,7 @@ if __name__ == "__main__":
args = parser.parse_args()
setpoint = None
if args.name is not None:
setpoint = SkyCoord.from_name(args.name)
elif (args.l is not None) and (args.b is not None):
......@@ -33,9 +34,9 @@ if __name__ == "__main__":
if args.scan:
scansize = args.scansize
centersetpoint = setpoint
sign = -1
dt.setRaDec(setpoint)
if setpoint is not None:
dt.setRaDec(setpoint)
dt.setOffset((0,0))
dt.waitUntilThere()
time.sleep(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment