d9097ef2ac1cc1807ab82551f223cc28ee852a26,brian2/codegen/generators/GSL_generator.py,GSLCythonCodeGenerator,get_array_name,#GSLCythonCodeGenerator#Any#,755

Before Change


            return "cdef " + type + " " + name

    def get_array_name(self, var_obj):
        return self.generator.get_array_name(var_obj)

    def get_pointer_name(self, var_obj):
        return self.get_array_name(var_obj)

After Change


        """
        // We have to do the import here to avoid circular import dependencies.
        from brian2.devices.device import get_device
        device = get_device()
        return device.get_array_name(var, access_data=access_data)

class GSLWeaveCodeGenerator(GSLCodeGenerator):

    def __getattr__(self, item):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: brian-team/brian2
Commit Name: d9097ef2ac1cc1807ab82551f223cc28ee852a26
Time: 2017-08-03
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLCythonCodeGenerator
Method Name: get_array_name


Project Name: brian-team/brian2
Commit Name: 71d109c4d1c3d4a41361d1db54957bbeb0cf2af1
Time: 2017-08-14
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: get_array_name


Project Name: brian-team/brian2
Commit Name: d9097ef2ac1cc1807ab82551f223cc28ee852a26
Time: 2017-08-03
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: get_array_name