Skip to content

Commit

Permalink
updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
wiheto committed Jul 6, 2019
1 parent 18b5ff9 commit 620d8eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/classes/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def test_workflow_temporalnetwork():
Dmag = teneto.networkmeasures.temporal_degree_centrality(Gmag)
twf = TenetoWorkflow()
twf.add_node('network_create', 'TemporalNetwork',
func_params={'from_array': G})
twf.add_node('binarize_percent', 'binarize', func_params={
params={'from_array': G})
twf.add_node('binarize_percent', 'binarize', params={
'threshold_type': 'percent', 'threshold_level': 0.05})
twf.add_node('degree_th-percent', 'calc_networkmeasure',
func_params={'networkmeasure': 'temporal_degree_centrality'})
params={'networkmeasure': 'temporal_degree_centrality'})
twf.add_node('binarize_magnitude', 'binarize', depends_on='network_create',
func_params={'threshold_type': 'magnitude', 'threshold_level': 0})
params={'threshold_type': 'magnitude', 'threshold_level': 0})
twf.add_node('degree_th-magnitude', 'calc_networkmeasure', depends_on='binarize_magnitude',
func_params={'networkmeasure': 'temporal_degree_centrality'})
params={'networkmeasure': 'temporal_degree_centrality'})
twf.run()
twf.make_workflow_figure()
if not all(Dth == twf.output_['degree_th-percent']):
Expand Down

0 comments on commit 620d8eb

Please sign in to comment.