Skip to content

Commit

Permalink
cinit is always called, do not need to call it
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Dec 10, 2024
1 parent 87ba52e commit bd60ee1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/pylib/_boutpp_build/boutpp.pyx.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,11 @@ cdef class {{ field.field_type }}(BOUTppBase):
f.setAll(data, ignoreDataType=ignoreDataType)
return f

def __cinit__(self,{{ field.field_type }} obj=None):
def __cinit__(self, {{ field.field_type }} obj=None):
self.cobj = NULL
if obj:
self.cobj = obj.cobj
self.isSelfOwned=True
super().__cinit__()
self.isSelfOwned = True

def set(self, data, ignoreDataType=False):
"""
Expand Down

0 comments on commit bd60ee1

Please sign in to comment.