Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore some snn network checks. #6

Open
a-t-0 opened this issue Dec 6, 2022 · 0 comments
Open

Restore some snn network checks. #6

a-t-0 opened this issue Dec 6, 2022 · 0 comments

Comments

@a-t-0
Copy link
Collaborator

a-t-0 commented Dec 6, 2022

# Assert no duplicate edges exist.
    assert_no_duplicate_edges_exist(G)

    # Assert all neuron properties are specified.
    verify_networkx_snn_spec(G, t=0, backend="nx")

    # Generate networkx network.
    add_nx_neurons_to_networkx_graph(G, t=0)

    if not isinstance(G, nx.DiGraph):
        raise Exception(
            "Error, the snn graph is not a networkx graph anymore:"
            + f"{type(G)}"
        )

    # TODO: add lava neurons if run config demands lava.
    # Generate lava network.
    # add_lava_neurons_to_networkx_graph(G)

    # Verify the simulations produce identical static
    # neuron properties.
    # compare_static_snn_properties(self, G)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant