e-merlin / eMERLIN_CASA_pipeline

This is CASA eMERLIN pipeline to calibrate data from the e-MERLIN array. Please fork the repository before making any changes and read the Coding Practices page in the wiki. Please add issues with the pipeline in the issues tab.
GNU General Public License v3.0
14 stars 11 forks source link

ms.getdata2 too slow? #62

Closed jmoldon closed 6 years ago

jmoldon commented 6 years ago

When running pipeline version v0.5.0 using CASA 5.1, the steps during get_msinfo are very slow. In particular things like getting the list of antennas, the observing band, etc, before were nearly immediate, and now it takes several minutes.

Is there any other way to read that information?

jmoldon commented 6 years ago

There is something wrong with ms.getdata2

CASA <27>: %timeit ms.getdata(['axis_info'],ifraxis=True)['axis_info']['ifr_axis']['ifr_name']
10 loops, best of 3: 34.8 ms per loop

CASA <28>: %timeit ms.getdata2(['axis_info'],ifraxis=True)['axis_info']['ifr_axis']['ifr_name']
1 loop, best of 3: 2.53 s per loop

CASA 5 throws a warning that ms.getdata will be deprecated by ms.getdata2, but I it is too slow. I will use ms.getdata even if we get the warning.