Skip to content

Commit

Permalink
More style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhilei committed Jun 29, 2021
1 parent 9f700b2 commit bbd0df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/correlator_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
parser.add_argument('--starttime_scale', help="Astropy Time object scale "
"string for interpreting starttime (string).", default=None)
parser.add_argument('--center_ra_deg', help="Center Right Ascention (RA) in degrees"
"this argument is in act with starttime is None.",
"this argument is in act with starttime is None.",
default=None)
parser.add_argument('--duration',
help="Required if command is 'take_data', "
Expand Down Expand Up @@ -93,8 +93,8 @@
starttime_obj = Time.now() + TimeDelta(Quantity(60, 'second'))
elif args.center_ra_deg is not None:
# Hard-coded numbers
hera_lat = -30.72152612068946 * u.deg,
hera_lon = 21.428303826863036 * u.deg,
hera_lat = -30.72152612068946 * u.deg
hera_lon = 21.428303826863036 * u.deg
hera_height = 1051.6900000208989 * u.m
# Calculation
hera_site = EarthLocation(hera_lon, hera_lat, hera_height)
Expand All @@ -106,7 +106,7 @@
c_hor.az.wrap_angle = 180 * u.deg
idx_peak = signal.find_peaks(c_hor.alt.degree)[0][0]
time_peak = time_arr[idx_peak]
starttime_obj = time_peak - args.duration / 2.
starttime_obj = time_peak - args.duration / 2.
else:
starttime_obj = None
if args.lstlock and starttime_obj is not None:
Expand Down

0 comments on commit bbd0df7

Please sign in to comment.