Skip to content

Commit a8bd9cc

Browse files
committed
init version 0.5.0
1 parent 9d8d804 commit a8bd9cc

File tree

9 files changed

+29
-305
lines changed

9 files changed

+29
-305
lines changed

.github/actions/setup-scipoptsuite-action/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inputs:
44
version:
55
description: "SCIPOptSuite version to install"
66
required: true
7-
default: "8.1.0"
7+
default: "9.0.0"
88

99
runs:
1010
using: "composite"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
### Changed
77
### Removed
88

9+
## v0.5.0
10+
### Added
11+
912
## v0.3.1
1013
### Update
1114
* support cython 3.0.0

output.txt

Lines changed: 0 additions & 279 deletions
This file was deleted.

src/pygcgopt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.3.1'
1+
__version__ = '0.5.0'
22

33
# required for Python 3.8 on Windows
44
import os

src/pygcgopt/consclassifier.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ cdef class ConsClassifier:
1010
def classify(self, conss, partition):
1111
pass
1212

13-
cdef SCIP_RETCODE PyConsClassifierFree(SCIP* scip, GCG_CONSCLASSIFIER* consclassifier) with gil:
13+
cdef SCIP_RETCODE PyConsClassifierFree(SCIP* scip, GCG_CONSCLASSIFIER* consclassifier) noexcept with gil:
1414
cdef GCG_CLASSIFIERDATA* consclassifierdata
1515
consclassifierdata = GCGconsClassifierGetData(consclassifier)
1616
py_consclassifier = <ConsClassifier>consclassifierdata
1717
py_consclassifier.freeConsClassifier()
1818
Py_DECREF(py_consclassifier)
1919
return SCIP_OKAY
2020

21-
cdef SCIP_RETCODE PyConsClassifierClassify(SCIP* scip, GCG_CONSCLASSIFIER* consclassifier, SCIP_Bool transformed) with gil:
21+
cdef SCIP_RETCODE PyConsClassifierClassify(SCIP* scip, GCG_CONSCLASSIFIER* consclassifier, SCIP_Bool transformed) noexcept with gil:
2222
cdef GCG_CLASSIFIERDATA* consclassifierdata
2323
consclassifierdata = GCGconsClassifierGetData(consclassifier)
2424
py_consclassifier = <ConsClassifier>consclassifierdata

src/pygcgopt/detector.pxi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,23 +75,23 @@ cdef wrap_detector_callback_result(Detector detector, PARTIALDEC_DETECTION_DATA*
7575
result[0] = result_dict.get("result", <SCIP_RESULT>result[0])
7676

7777

78-
cdef SCIP_RETCODE PyDetectorFree (SCIP* scip, GCG_DETECTOR* detector) with gil:
78+
cdef SCIP_RETCODE PyDetectorFree (SCIP* scip, GCG_DETECTOR* detector) noexcept with gil:
7979
py_detector = get_py_detector(detector)
8080
py_detector.freeDetector()
8181
Py_DECREF(py_detector)
8282
return SCIP_OKAY
8383

84-
cdef SCIP_RETCODE PyDetectorInit (SCIP* scip, GCG_DETECTOR* detector) with gil:
84+
cdef SCIP_RETCODE PyDetectorInit (SCIP* scip, GCG_DETECTOR* detector) noexcept with gil:
8585
py_detector = get_py_detector(detector)
8686
py_detector.initDetector()
8787
return SCIP_OKAY
8888

89-
cdef SCIP_RETCODE PyDetectorExit (SCIP* scip, GCG_DETECTOR* detector) with gil:
89+
cdef SCIP_RETCODE PyDetectorExit (SCIP* scip, GCG_DETECTOR* detector) noexcept with gil:
9090
py_detector = get_py_detector(detector)
9191
py_detector.exitDetector()
9292
return SCIP_OKAY
9393

94-
cdef SCIP_RETCODE PyDetectorPropagatePartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) with gil:
94+
cdef SCIP_RETCODE PyDetectorPropagatePartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) noexcept with gil:
9595
cdef SCIP_CLOCK* clock = start_new_clock(scip)
9696

9797
py_detector = get_py_detector(detector)
@@ -104,7 +104,7 @@ cdef SCIP_RETCODE PyDetectorPropagatePartialdec (SCIP* scip, GCG_DETECTOR* detec
104104

105105
return SCIP_OKAY
106106

107-
cdef SCIP_RETCODE PyDetectorFinishPartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) with gil:
107+
cdef SCIP_RETCODE PyDetectorFinishPartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) noexcept with gil:
108108
cdef SCIP_CLOCK* clock = start_new_clock(scip)
109109

110110
py_detector = get_py_detector(detector)
@@ -117,7 +117,7 @@ cdef SCIP_RETCODE PyDetectorFinishPartialdec (SCIP* scip, GCG_DETECTOR* detector
117117

118118
return SCIP_OKAY
119119

120-
cdef SCIP_RETCODE PyDetectorPostprocessPartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) with gil:
120+
cdef SCIP_RETCODE PyDetectorPostprocessPartialdec (SCIP* scip, GCG_DETECTOR* detector, PARTIALDEC_DETECTION_DATA* partialdecdetectiondata, SCIP_RESULT* result) noexcept with gil:
121121
cdef SCIP_CLOCK* clock = start_new_clock(scip)
122122

123123
py_detector = get_py_detector(detector)
@@ -130,19 +130,19 @@ cdef SCIP_RETCODE PyDetectorPostprocessPartialdec (SCIP* scip, GCG_DETECTOR* det
130130

131131
return SCIP_OKAY
132132

133-
cdef SCIP_RETCODE PyDetectorSetParamAggressive (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) with gil:
133+
cdef SCIP_RETCODE PyDetectorSetParamAggressive (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) noexcept with gil:
134134
py_detector = get_py_detector(detector)
135135
result_dict = py_detector.setParamAggressive() or {}
136136
result[0] = result_dict.get("result", <SCIP_RESULT>result[0])
137137
return SCIP_OKAY
138138

139-
cdef SCIP_RETCODE PyDetectorSetParamDefault (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) with gil:
139+
cdef SCIP_RETCODE PyDetectorSetParamDefault (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) noexcept with gil:
140140
py_detector = get_py_detector(detector)
141141
result_dict = py_detector.setParamDefault() or {}
142142
result[0] = result_dict.get("result", <SCIP_RESULT>result[0])
143143
return SCIP_OKAY
144144

145-
cdef SCIP_RETCODE PyDetectorSetParamFast (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) with gil:
145+
cdef SCIP_RETCODE PyDetectorSetParamFast (SCIP* scip, GCG_DETECTOR* detector, SCIP_RESULT* result) noexcept with gil:
146146
py_detector = get_py_detector(detector)
147147
result_dict = py_detector.setParamFast() or {}
148148
result[0] = result_dict.get("result", <SCIP_RESULT>result[0])

0 commit comments

Comments
 (0)