def execute(self): self.cost = _landbos.transmissionCost(self.voltage, self.distInter, self.newSwitchyardRequired)
def test_transmission2(self): cost = _landbos.transmissionCost(self.voltage, self.distToInterconnect, newSwitchyardRequired=False) self.assertAlmostEqual(1598569, cost, delta=0.5)
def test_transmission(self): cost = _landbos.transmissionCost(self.voltage, self.distToInterconnect) self.assertAlmostEqual(4246268, cost, delta=0.5)