Commits
Kumar Golap authored 1443b410a7a Merge
333 333 | |
334 334 | Usage: |
335 335 | mean_elevation = MeanElevation.get(vis, antenna_id) |
336 336 | """ |
337 337 | |
338 338 | |
339 339 | def get(cls, vis, antenna_id): |
340 340 | """Get elevations aveage.""" |
341 341 | stateid = cls._get_stateid(vis) |
342 342 | science_dd = cls._get_science_dd(vis) |
343 - | rows = cls._query_rows(vis, science_dd, stateid, antenna_id) |
343 + | rows = cls._query_rows(vis, science_dd, stateid.tolist(), antenna_id) |
344 344 | |
345 345 | return cls._calc_elevation_mean(rows, vis) |
346 346 | |
347 347 | |
348 348 | def _get_stateid(vis): |
349 349 | with tool_manager(vis, mstool) as ms: |
350 350 | ms.msselect({'scanintent': 'OBSERVE_TARGET#ON_SOURCE'}) |
351 351 | selected = ms.msselectedindices() |
352 352 | |
353 353 | stateid = selected['stateid'] |