コード例 #1
0
def CalNodeProperties(nodes):
    """ get node properties using seuif97 """
    for node in nodes:
        if node['p'] != None and node['t'] != None:
            node['h'] = pt2h(node['p'], node['t'])
            node['s'] = pt2s(node['p'], node['t'])
            node['x'] = pt2x(node['p'], node['t'])
        elif node['p'] != None and node['x'] != None:
            node['t'] = px2t(node['p'], node['x'])
            node['h'] = px2h(node['p'], node['x'])
            node['s'] = px2s(node['p'], node['x'])
        elif node['t'] != None and node['x'] != None:
            node['p'] = tx2p(node['t'], node['x'])
            node['h'] = tx2h(node['t'], node['x'])
            node['s'] = tx2s(node['t'], node['x'])
コード例 #2
0
ファイル: node.py プロジェクト: juanblanco93/PyRankine
 def pt(self):
     self.h = if97.pt2h(self.p, self.t)
     self.s = if97.pt2s(self.p, self.t)
     self.v = if97.pt2v(self.p, self.t)
     self.x = if97.pt2x(self.p, self.t)
コード例 #3
0
ファイル: node.py プロジェクト: MuskZ/PyRankine
 def pt(self):
     self.h = if97.pt2h(self.p, self.t)
     self.s = if97.pt2s(self.p, self.t)
     self.v = if97.pt2v(self.p, self.t)
     self.x = if97.pt2x(self.p, self.t)