-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
216 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import hypercontagion.classes.epi_contagion | ||
from hypercontagion.classes import epi_contagion | ||
from hypercontagion.classes import epi_contagion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from hypercontagion.simulation import epidemics, functions, opinions, utilities | ||
from .opinions import * | ||
|
||
from .functions import * | ||
from .opinions import * | ||
from .utilities import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .vis import * | ||
import hypercontagion.visualization.colors | ||
import hypercontagion.visualization.layout | ||
import hypercontagion.visualization.vis | ||
|
||
from .colors import * | ||
import hypercontagion.visualization.colors | ||
from .layout import * | ||
import hypercontagion.visualization.layout | ||
from .vis import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,43 @@ | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def func_args_1(): | ||
return {"node": 1, "status": {1: "S", 2: "S", 3: "I"}, "edge": [1, 2, 3]} | ||
|
||
|
||
@pytest.fixture | ||
def func_args_2(): | ||
return {"node": 1, "status": {1: "S", 2: "I", 3: "I"}, "edge": [1, 2, 3]} | ||
|
||
|
||
@pytest.fixture | ||
def func_args_3(): | ||
return {"node": 2, "status": {1: "S", 2: "I", 3: "I", 4: "R"}, "edge": [1, 2, 3, 4]} | ||
|
||
|
||
@pytest.fixture | ||
def func_args_4(): | ||
return {"node": 5, "status": {1: "S", 2: "I", 3: "I", 4: "R", 5: "S"}, "edge": [1, 2, 3, 4, 5]} | ||
return { | ||
"node": 5, | ||
"status": {1: "S", 2: "I", 3: "I", 4: "R", 5: "S"}, | ||
"edge": [1, 2, 3, 4, 5], | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def func_args_5(): | ||
return {"node": 3, "status": {1: "I", 2: "I", 3: "S", 4: "I", 5: "I"}, "edge": [1, 2, 3, 4, 5]} | ||
return { | ||
"node": 3, | ||
"status": {1: "I", 2: "I", 3: "S", 4: "I", 5: "I"}, | ||
"edge": [1, 2, 3, 4, 5], | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def func_args_6(): | ||
return {"node": 3, "status": {1: "S", 2: "S", 3: "S", 4: "R", 5: "R"}, "edge": [1, 2, 3, 4, 5]} | ||
return { | ||
"node": 3, | ||
"status": {1: "S", 2: "S", 3: "S", 4: "R", 5: "R"}, | ||
"edge": [1, 2, 3, 4, 5], | ||
} |
Oops, something went wrong.