Networks

This module contains all necessary functions for handling network related information

Classes and Functions

addNetwork(network_code, doi, privacy_level, db_conn=None)

Function that adds a new network with network code network_code to the database.

Parameters:
  • network_code (string) – Network code of the new network
  • doi (string) – Digital Object Identifier of the new network
  • privacy_level (string) – Privacy level of the new network
getNetworks(db_conn=None)

Function for returning all networks in a list to user.

Returns:list of networks
removeNetwork(network_code, db_conn=None)

Function for removing a network from the database.

Parameters:network_code (string) – Network code for the new network