PMUtoCSV_VerA01.py 文件源码

python
阅读 43 收藏 0 点赞 0 评论 0

项目:PMUtoCSVwriter 作者: PaulBrogan 项目源码 文件源码
def __init__(self):

        self.AsciiOP = False      # change to False for unicode output

        InvertSymmetricalComponents = True 
        self.SymAng = math.pi * (2. / 3.) 
        if InvertSymmetricalComponents == True:
            self.SymAng = -self.SymAng

        logging.basicConfig(filename = 'PMU2CSV_logfile.log', level = logging.INFO, filemode='w', format='%(asctime)s %(message)s')
        logging.critical('-------------------------------------')
        logging.critical('Script started at ' + time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()) + 'GMT')

        threading.Thread.__init__(self)

        self.PMUip = "192.168.0.10"
        self.PMUport = 4712
        self.PMUnumber = 20

        self.CSVlabel = "PMUtoCSV_scriptDefault_"
        self.WriteEvery = 5
        self.CloseFileAfter = 3600

        self.timeSF = 13
        self.dataSF = 7
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号