Skip to content

Commit

Permalink
Add super __init__() for select classes
Browse files Browse the repository at this point in the history
Several classes that were inheriting from "_HelicsCHandle" had no proper init and thus were not able to be used. Theses now have the same init as their superclass ("_HelicsCHandle") and will be more useful.
  • Loading branch information
trevorhardy committed Feb 2, 2024
1 parent a2bc598 commit 6c95a5c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions helics/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,11 +1392,13 @@ def message_id(self, v):


class HelicsQuery(_HelicsCHandle):
pass
def __init__(self, handle, cleanup=False):
super(HelicsQueryBuffer, self).__init__(handle, cleanup


class HelicsQueryBuffer(_HelicsCHandle):
pass
def __init__(self, handle, cleanup=False):
super(HelicsQueryBuffer, self).__init__(handle, cleanup)


class HelicsEndpoint(_HelicsCHandle):
Expand Down Expand Up @@ -2823,7 +2825,8 @@ class HelicsCallbackFederate(HelicsCombinationFederate):
pass

class HelicsDataBuffer(_HelicsCHandle):
pass
def __init__(self, handle, cleanup=False):
super(HelicsQueryBuffer, self).__init__(handle, cleanup


class HelicsException(Exception):
Expand Down

0 comments on commit 6c95a5c

Please sign in to comment.