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 test that verifies the images and general snn computation/results computation is correct. #68

Closed a-t-0 closed 1 year ago

a-t-0 commented 2 years ago

Verify the output image name contains the timestamp in:


    run_config_to_filename(run_config)
    # TODO: Ensure output file exists.
    # TODO: Verify the correct graphs is passed by checking the graph tag.

    # TODO: merge experiment config, run_config into single dict.
    if run_config["simulator"] == "nx":

        if run_config["export_snns"]:
            # Output the json dictionary of the files.
            filename = run_config_to_filename(run_config)
            print(f"Exporting image:{filename}\n")

            output_stage_json(
                experiment_config,
                graphs_stage_2,
                filename,
                run_config,
                stage_index,
a-t-0 commented 1 year ago