uni-courses / snncompare

Runs networkx graphs representing spiking neural networks of LIF-neurons on lava-nc or networkx.
GNU Affero General Public License v3.0
2 stars 0 forks source link

Write tests that verify the json graph output structures are correct. #67

Closed a-t-0 closed 1 year ago

a-t-0 commented 2 years ago
a-t-0 commented 1 year ago

The json graph output structure should be: experiment setting run setting graphs.

Depending on the run settings and experiment settings, the graphs should be: ... ...

And depending on the level of completion, these graphs should have a stage index: 1,2,3,4.

a-t-0 commented 1 year ago
for stage in stages:
        if f"stage_{stage}" in output_dict["graphs_dict"]:
            restored_graphs_dict[f"stage_{stage}"] = output_dict[
                "graphs_dict"
            ][f"stage_{stage}"]

And another one. CTRL+F

a-t-0 commented 1 year ago

Up next. Make sure the main.py outputs the expected dictionaries (if export_snns is false).

a-t-0 commented 1 year ago

Verify the graph types are as expected.

a-t-0 commented 1 year ago
# TODO: check if the overwrite is True,
            # TODO: check if the graphs already are loaded from file.
            # TODO: check if the graphs can be loaded from file,

            # TODO: Verify the (incoming (and loaded)) graph types are as expected.
a-t-0 commented 1 year ago

The alg props are modified during test TTTF. This leads to a different sim_time at different times in the test (while creating the dummy images, sim duration =55, and while testing if stage 3 is completed, sim_duration =94.