@@ -194,11 +194,11 @@ def determine_rectangularity(
194
194
vice versa. This does NOT require that the baselines and times are sorted within
195
195
that structure.
196
196
197
- Note that blt_order being (time, baseline) or vice versa does *not* guarantee
197
+ Note that blt_order being (time, baseline) does *not* guarantee
198
198
rectangularity, even when Nblts == Nbls * Ntimes, since if `autos_first = True` is
199
199
set on `reorder_blts`, then it will still set the blt_order attribute to
200
200
(time, baseline), but they will not strictly be in that order (since it will
201
- actually be in autos first order).
201
+ actually be in autos- first order).
202
202
"""
203
203
# check if the data is rectangular
204
204
time_first = True
@@ -210,14 +210,12 @@ def determine_rectangularity(
210
210
return True , True
211
211
elif ntimes == 1 :
212
212
return True , False
213
- # Note that the opposite isn't true: time/baseline ordering does not always mean
214
- # that we have rectangularity, because of the autos_first keyword to reorder_blts.
215
213
elif blt_order == ("baseline" , "time" ):
214
+ # Note that the opposite isn't true: time/baseline ordering does not always mean
215
+ # that we have rectangularity, because of the autos_first keyword to
216
+ # reorder_blts.
216
217
return True , True
217
218
218
- # elif blt_order == ("time", "baseline"):
219
- # return True, False
220
-
221
219
# That's all the easiest checks.
222
220
if time_array [1 ] == time_array [0 ]:
223
221
time_first = False
0 commit comments