Module trase.tools.pcs.networks.networks

Classes

class Network (links, cur=None, fill_paths=True, flatten=True)

Collection of links.

Ancestors

Methods

def get_subnetwork(self, include=None, exclude=None, cur=None)

Create Network object that contains only links including nodes specified by their variable name or their attribute Node.name, and excluding specified nodes.

Keyword arguments: include – list of Node objects to include exclude – list of Node objects to exclude cur – main database cursor object

def show(self)

Full representation of network; triggers creation of lazy attributes.

Display links on separate lines by groups of 24.

def to_csv(self, filepath)

Write network to csv file.

Keyword arguments: filepath – file path cur – main database cursor object

def to_db(self, ref_id, overwrite=False, autocommit=True, cnx=None, cur=None)

Inherited members