Skip to content

Commit 941c7e1

Browse files
Ruby Byrnebhazelton
authored andcommitted
fix bug reading multiple times
1 parent 125777b commit 941c7e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/pyuvdata/uvcal/ms_cal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ def read_ms_cal(
281281
)
282282
if any(close_check):
283283
# Fill in the first closest entry matched
284-
time_dict[time] = np.where(close_check)[0][0]
284+
time_dict[time] = time_dict[
285+
list(time_dict)[np.where(close_check)[0][0]]
286+
]
285287
else:
286288
# Otherwise, plug in a new entry
287289
time_dict[time] = time_count

0 commit comments

Comments
 (0)