d9097ef2ac1cc1807ab82551f223cc28ee852a26,brian2/codegen/generators/GSL_generator.py,GSLWeaveCodeGenerator,get_array_name,#GSLWeaveCodeGenerator#Any#,807

Before Change


        return type + var

    def get_array_name(self, var_obj):
        return self.generator.get_array_name(var_obj, access_data=False)

    def get_pointer_name(self, var_obj):
        return self.generator.get_array_name(var_obj, access_data=True)

After Change


    def get_array_name(var, access_data=True):
        // We have to do the import here to avoid circular import dependencies.
        from brian2.devices.device import get_device
        device = get_device()
        if access_data:
            return "_ptr" + device.get_array_name(var)
        else:
            return device.get_array_name(var, access_data=False)
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: GSLWeaveCodeGenerator
Method Name: get_array_name


Project Name: brian-team/brian2
Commit Name: a21b67aed967b3932019c8b0d266bf4098a55d2a
Time: 2017-07-06
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLCythonCodeGenerator
Method Name: write_dataholder


Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: write_dataholder