c0ff3734f346e4feb5dcfeebbe60e3bf3d7c0431,brian2/codegen/generators/GSL_generator.py,GSLCodeGenerator,add_meta_variables,#GSLCodeGenerator#,770

Before Change


            pointer_failed_steps = None

        if options["save_step_count"]:
            N = self.variables["N"].get_value()
            try:
                self.owner.variables.add_array("_step_count", size=N, dtype=np.int32)
            except KeyError:
                // has already been run

After Change


            pointer_failed_steps = None

        if options["save_step_count"]:
            N = int(self.variables["N"].get_value())
            try:
                self.owner.variables.add_array("_step_count", size=N, dtype=np.int32)
            except KeyError:
                // has already been run
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: brian-team/brian2
Commit Name: c0ff3734f346e4feb5dcfeebbe60e3bf3d7c0431
Time: 2017-08-30
Author: marcel.stimberg@inserm.fr
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLCodeGenerator
Method Name: add_meta_variables