awips2/cave/com.raytheon.viz.gfe/scriptTemplates/textUtility.vm

32 lines
901 B
Text
Raw Normal View History

2022-05-05 12:34:50 -05:00
# ----------------------------------------------------------------------------
# This software is in the public domain, furnished "as is", without technical
# support, and with no warranty, express or implied, as to its usefulness for
# any purpose.
#
# ${itemName}.py
#
# Author: $author
# ----------------------------------------------------------------------------
import TextRules
import SampleAnalysis
import time, string
class ${itemName}(TextRules.TextRules, SampleAnalysis.SampleAnalysis):
def __init__(self):
TextRules.TextRules.__init__(self)
SampleAnalysis.SampleAnalysis.__init__(self)
# Include your utility methods here
def p_myMethod(self):
return 10
## To set up and use this utility:
##
## import MyUtility
##
## Then, in your TextProduct methods:
##
## self.p_myUtility = MyUtility.MyUtility()
## y = self.p_myUtility.p_myMethod()
##