File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -252,14 +252,14 @@ cdef class DetProbData:
252
252
cdef ConsPartition* result = self .thisptr.getConsPartition(partitionIndex)
253
253
return ConsPart.create(result, < DetProbData> weakref.proxy(self ))
254
254
255
- # def getConsPartitions(self):
255
+ def getConsPartitions (self ):
256
256
""" returns list to stored constraint partitions
257
257
258
258
:return: list to stored constraint partitions
259
259
:rtype: list
260
260
"""
261
- # cdef vector[ConsPartition*] result = self.thisptr.getConsPartitions ()
262
- # return [ConsPart.create(r , self) for r in result ]
261
+ cdef nconsparts = self .thisptr.getNConsPartitions ()
262
+ return [ConsPart.create(self .thisptr.getConsPartition(r) , self ) for r in range (nconsparts) ]
263
263
264
264
def getCons (self , consIndex ):
265
265
""" returns constraint related to a constraint index
Original file line number Diff line number Diff line change @@ -371,7 +371,6 @@ cdef extern from "gcg/class_detprobdata.h" namespace "gcg":
371
371
void freeTemporaryData() except +
372
372
PARTIALDECOMP* getAncestorPartialdec(int partialdecindex) except +
373
373
ConsPartition* getConsPartition(int partitionIndex) except +
374
- # vector[ConsPartition*] getConsPartitions() except +
375
374
SCIP_CONS* getCons(int consIndex) except +
376
375
vector[int ] getConssForCons(int consIndex) except +
377
376
vector[int ] getConssForVar(int varIndex) except +
You can’t perform that action at this time.
0 commit comments