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

# TODO: get graph length from graph object. #72

Closed a-t-0 closed 2 years ago

a-t-0 commented 2 years ago

In stage_1_load_input_graphs.py in stage 3:


            # TODO: get graph length from graph object.
            nr_of_simulation_steps=100000
            for t in range(0, nr_of_simulation_steps):
                # Generate graph filenames
                expected_filepaths.append(
                    relative_output_dir + filename + f"t_{t}" + extension
                )

Used to calculate this from a file, now you have the dict with the graphs with the timesteps in it (e.g. in the nodes, so look through the graph object how many timesteps were simulated instead.

a-t-0 commented 2 years ago

Solved by getting it from run config algo properties instead.