Skip to content

Commit

Permalink
fixed relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed May 2, 2022
1 parent 3d31afe commit d39e9e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 5 additions & 3 deletions hypercontagion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import hypercontagion.simulation
import pkg_resources

from hypercontagion import simulation
from hypercontagion.simulation import *
import hypercontagion.classes
from hypercontagion.classes import *

__version__ = pkg_resources.require("hypercontagion")[0].version
3 changes: 1 addition & 2 deletions hypercontagion/simulation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .epidemics import *
from hypercontagion.simulation import epidemics, functions, opinions, utilities
from .opinions import *
from .functions import *
from .utilities import *
from hypercontagion.simulation import utilities
2 changes: 1 addition & 1 deletion tests/simulation/test_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hypercontagion.simulation.functions import collective_contagion, individual_contagion, threshold, majority_vote, size_dependent
from hypercontagion import collective_contagion, individual_contagion, threshold, majority_vote, size_dependent


def test_collective_contagion(func_args_1, func_args_2, func_args_3, func_args_4, func_args_5):
Expand Down

0 comments on commit d39e9e4

Please sign in to comment.