Beispiel #1
0
            'min': mn,
            'max': mx,
            'mean': mean
        })
    return stats


# testing branch
if __name__ == '__main__':
    # just to make sure
    os.system("killall -9 meqserver meqserver-opt")

    # flush parm tables
    os.system("rm -fr *.mep")

    ass = assayer.assayer("assay343")
    ass.compile("matrix343.py")

    # test source fluxes

    ass.init_test("source-flux")
    ass.watch("stokes:I:3C343/cache.result", rqtype="ev")
    ass.watch("stokes:Q:3C343/cache.result", rqtype="ev")
    ass.watch("stokes:I:3C343_1/cache.result", rqtype="ev")
    ass.watch("stokes:Q:3C343_1/cache.result", rqtype="ev")
    for s1 in range(1, 15):
        for s2 in range(s1 + 1, 15):
            node = ":".join(("corrected", str(s1), str(s2)))
            ass.watch(node + "/cache.result", rqtype="ev", functional=vs_stats)
## watching the solver is not necessarily a good idea since we may change the
## layout of the solver metrics. In any case simply verifying the actual
Beispiel #2
0
    else:
      mn = numarray.where(flags,1e+99,a).min();
      mx = numarray.where(flags,-1e+99,a).max();
      mean = numarray.where(flags,0,a).mean();
    stats.append({'min':mn,'max':mx,'mean':mean});
  return stats;

# testing branch
if __name__ == '__main__':
  # just to make sure
  os.system("killall -9 meqserver meqserver-opt");
  
  # flush parm tables
  os.system("rm -fr *.mep");
  
  ass = assayer.assayer("assay343");
  ass.compile("matrix343.py");
  
  # test source fluxes
  
  ass.init_test("source-flux");
  ass.watch("stokes:I:3C343/cache.result",rqtype="ev");
  ass.watch("stokes:Q:3C343/cache.result",rqtype="ev");
  ass.watch("stokes:I:3C343_1/cache.result",rqtype="ev");
  ass.watch("stokes:Q:3C343_1/cache.result",rqtype="ev");
  for s1 in range(1,15):
    for s2 in range(s1+1,15):
      node = ":".join(("corrected",str(s1),str(s2)));
      ass.watch(node+"/cache.result",rqtype="ev",functional=vs_stats);
## watching the solver is not necessarily a good idea since we may change the 
## layout of the solver metrics. In any case simply verifying the actual
Beispiel #3
0
# or write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

from Timba.Apps import app_nogui
from Timba.Apps import assayer

import sys
import traceback
import os

# testing branch
if __name__ == '__main__':
    os.system("killall -9 meqserver meqserver-opt")

    ass = assayer.assayer("tdl_test")

    ass.compile("tdl_test.tdl")

    ass.init_test("default")

    ass.watch('x/cache.request_id')
    ass.watch('x/cache.result')

    ass.run()

    ass.inspect("x/cache.result")
    ass.inspect("solver/cache.result")

    stat = ass.finish()
# or write to the Free Software Foundation, Inc., 
# 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

from Timba.Apps import app_nogui
from Timba.Apps import assayer

import sys
import traceback
import os

# testing branch
if __name__ == '__main__':
  os.system("killall -9 meqserver meqserver-opt");
  
  ass = assayer.assayer("tdl_test");

  ass.compile("tdl_test.tdl");

  ass.init_test("default");

  ass.watch('x/cache.request_id');
  ass.watch('x/cache.result');

  ass.run();

  ass.inspect("x/cache.result");
  ass.inspect("solver/cache.result");

  stat = ass.finish();