<reponame>cyrilbois/PFNET.py
#***************************************************#
# This file is part of PFNET.                       #
#                                                   #
# Copyright (c) 2015, <NAME>.       #
#                                                   #
# PFNET is released under the BSD 2-clause license. #
#***************************************************#

import sys
sys.path.append('.')

# Getting Started - Example

import pfnet
import numpy as np

net = pfnet.PyParserMAT().parse(sys.argv[1])

print(np.average([bus.degree for bus in net.buses]))

#***************************************************#
# This file is part of PFNET.                       #
#                                                   #
# Copyright (c) 2015, <NAME>.       #
#                                                   #
# PFNET is released under the BSD 2-clause license. #
#***************************************************#

import sys
sys.path.append('.')

# Getting Started - Example

import pfnet
import numpy as np

net = pfnet.PyParserMAT().parse(sys.argv[1])

print(np.average([bus.degree for bus in net.buses]))
#***************************************************# # This file is part of PFNET.                       # #                                                   # # Copyright (c) 2015, <NAME>.       # #                                                   # # PFNET is released under the BSD 2-clause license. # #***************************************************# # Getting Started - Example