Skip to content

Commit

Permalink
Update src/pyscipopt/reader.pxi
Browse files Browse the repository at this point in the history
Co-authored-by: DominikKamp <[email protected]>
  • Loading branch information
Joao-Dionisio and DominikKamp authored Jan 27, 2025
1 parent 6111ed1 commit 6950e69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pyscipopt/reader.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ cdef SCIP_RETCODE PyReaderWrite (SCIP* scip, SCIP_READER* reader, FILE* file,
SCIP_CONS** conss, int nconss, int maxnconss, int startnconss,
SCIP_Bool genericnames, SCIP_RESULT* result) noexcept with gil:
cdef SCIP_READERDATA* readerdata
cdef int i
cdef int fd = fileno(file)
cdef int i

readerdata = SCIPreaderGetData(reader)
cdef int fd = fileno(file)

PyFile = os.fdopen(fd, "w", closefd=False)
PyName = name.decode('utf-8')
PyBinVars = [Variable.create(vars[i]) for i in range(nbinvars)]
Expand Down

0 comments on commit 6950e69

Please sign in to comment.