Skip to content
Snippets Groups Projects
Commit c6d0d967 authored by Daniel Brown's avatar Daniel Brown
Browse files

changing exception to warning

parent 7b53a4e0
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -28,6 +28,7 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import warnings
import codecs
import uuid
import sys
......@@ -940,7 +941,8 @@ class kat(object):
self.parseCommands(commands, blocks=blocks)
def parseKatCode(self, code, blocks=None):
raise pkex.BasePyKatException("Removed. Use parseCommands instead.")
warnings.warn('parseKatCode depreciated, use parseCommands.', stacklevel=2)
self.parseCommands(code, block=blocks)
def processConstants(self, commands):
"""
......
......@@ -10,12 +10,12 @@ kat.loadKatFile("LHO_IFO_maxtem2.kat") # load the conf
##############################################
## set excitationas, sensors, and some settings
##############################################
kat.parseKatCode( "fsig sig1 ETMXHR 10 180")
kat.parseKatCode( "fsig sig1 ETMYHR 10 0")
kat.parseKatCode( "pd1 myomc 10 nOMC_HROC_trans")
kat.parseKatCode( "xaxis sig1 f log 10 1k 10")
kat.parseKatCode( "put myomc f1 $x1") # to follow
kat.parseKatCode( "yaxis abs:deg")
kat.parseCommands( "fsig sig1 ETMXHR 10 180")
kat.parseCommands( "fsig sig1 ETMYHR 10 0")
kat.parseCommands( "pd1 myomc 10 nOMC_HROC_trans")
kat.parseCommands( "xaxis sig1 f log 10 1k 10")
kat.parseCommands( "put myomc f1 $x1") # to follow
kat.parseCommands( "yaxis abs:deg")
kat.verbose = True
out = kat.run() # do the computation
result.append(out['myomc']) # append the result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment