Christopher Chianelli

Results 52 comments of Christopher Chianelli

If `jpype.shutdownJVM()` waits for JVM shutdown to be completed when called, the files are deleted after the JVM shutdown is complete. On the other hand, if `jpype.shutdownJVM()` is async or...

I use the files directly via importlib.metadata: ```python jars = [str(p.locate()) for p in importlib.metadata.files('optapy') if p.name.endswith('.jar')] ``` Thus, avoiding the use of a temporary directory entirely. The issue still...

These seem relevant: https://docs.python.org/3/c-api/init.html#profiling-and-tracing My guess is the call look like: ```C JP_TRACE("Call Python"); // new code PyFrameObject *frame = /*somehow create frame */ Py_tracefunc(callable.get(), frame, PyTrace_CALL, Py_None); // end...

(well, it appears `Py_tracefunc` is a type that is used for tracers/debuggers, so the above probably won't work)

As far as I am aware, PyCharm uses pydevd for debugging, and adding a breakpoint works: ```java package org.acme; import java.util.function.Function; public class MyClass { public static String apply(Function mapper)...

So I believe this issue is specific to multi-threading, in particular when the thread that calls the python code is not the same as the thread that was the entry...

Workaround for Python (this works): ```python import jpype from jpype import JClass import pydevd import jpype.imports jpype.startJVM(classpath=['target/issue-reproducer-8.11.0.Final.jar']) def my_function(arg): # add this code; it connect the debugger to the background...

Of particular interest is https://www.optapy.org/docs/latest/construction-heuristics/construction-heuristics.html and https://www.optapy.org/docs/latest/local-search/local-search.html , which explains the various construction heuristics and local search algorithms that can be used.

> How to take values ​​from the database in optapy and not from manual entry.. When taking values ​​from the database using traditional methods, it only takes the last value...

What happens when you invoke `pytest` as `pytest --import-mode=importlib .\tests\test_code.py`? PyTest is used for OptaPy tests: https://github.com/optapy/optapy/blob/5418b0226413d7baec60339bdf67de7bf8df8a4d/optapy-core/tox.ini#L14 ; Without changing import-mode, I get a `ClassNotFoundException`. Changing import-mode to importlib, all...