Skip to content

Commit

Permalink
Simplify create_network and _node
Browse files Browse the repository at this point in the history
Closes #367.
  • Loading branch information
suchow committed Jul 2, 2016
1 parent 16f1ad6 commit 6b2ff5c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions wallace/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def setup(self):

def create_network(self):
"""Return a new network."""
return self.network_type()()

def network_type(self):
return Network
return Empty()

def networks(self, role="all", full="all"):
"""All the networks in the experiment."""
Expand Down Expand Up @@ -128,10 +125,7 @@ def get_network_for_participant(self, participant):

def create_node(self, participant, network):
"""Create a node for a participant."""
return self.node_type()(participant=participant, network=network)

def node_type(self):
return Node
return Node()

def add_node_to_network(self, node, network):
"""Add a node to a network."""
Expand Down

0 comments on commit 6b2ff5c

Please sign in to comment.