-
Notifications
You must be signed in to change notification settings - Fork 32
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
22 changed files
with
331 additions
and
695 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import networkx | ||
import numpy | ||
import pytest | ||
|
||
import toponetx | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def doctest_default_imports(doctest_namespace): | ||
"""Add default imports to the doctest namespace. | ||
This fixture adds the following default imports to every doctest, so that their use | ||
is consistent across all doctests without boilerplate imports polluting the | ||
doctests themselves: | ||
.. code-block:: python | ||
import numpy as np | ||
import networkx as nx | ||
import toponetx as tnx | ||
""" | ||
doctest_namespace["np"] = numpy | ||
doctest_namespace["nx"] = networkx | ||
doctest_namespace["tnx"] = toponetx |
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,14 @@ | ||
"""Initialize the library with modules and other content.""" | ||
|
||
__version__ = "0.0.2" | ||
|
||
__all__ = ["algorithms", "classes", "datasets", "generators", "transform", "utils"] | ||
from toponetx.algorithms import * | ||
from toponetx.classes import * | ||
from toponetx.exception import * | ||
from toponetx.generators import * | ||
from toponetx.readwrite import * | ||
from toponetx.transform import * | ||
from toponetx.utils import * | ||
|
||
# Do not import the contents of the following modules into the global namespace: | ||
# from toponetx.datasets 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
Oops, something went wrong.