Source
########################################################################
# test_task_slsearch.py
#
# Copyright (C) 2018
# Associated Universities, Inc. Washington DC, USA
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
# License for more details.
#
# [Add the link to the JIRA ticket here once it exists]
#
# Based on the requirements listed in plone found here:
# https://casadocs.readthedocs.io/en/stable/api/tt/casatasks.information.slsearch.html
#
#
##########################################################################
import os
import shutil
import unittest
from casatools import ctsys, spectralline, table
from casatasks import slsearch, casalog
good_table = "biglist.tbl"
_tb = table( )
def run_search(
tab, outfile, freqrange, species, reconly,
chemnames, qns, intensity, smu2, loga, el,
eu, rrlinclude, rrlonly, verbose, logfile,
append
):
mysl = spectralline()
restool = None
if (not mysl.open(tab)):
raise Exception
try:
return mysl.search(
outfile=outfile, freqrange=freqrange,
species=species, reconly=reconly,
chemnames=chemnames, qns=qns,
intensity=intensity, smu2=smu2, loga=loga,
el=el, eu=eu, rrlinclude=rrlinclude,
rrlonly=rrlonly, verbose=verbose, logfile=logfile,
append=append
)
except:
raise
finally:
mysl.done()
def run_slsearch(
tab, outfile, freqrange, species, reconly,
chemnames, qns, intensity, smu2, loga, el,
eu, rrlinclude, rrlonly, verbose, logfile,