Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create API for just signle process (No pickle) #442

Closed
lsyxiaopang opened this issue Aug 21, 2023 · 2 comments
Closed

Create API for just signle process (No pickle) #442

lsyxiaopang opened this issue Aug 21, 2023 · 2 comments

Comments

@lsyxiaopang
Copy link

I am trying to combine adaptive and mph (a python interface to interact with COMSOL) together, but I've found that when I try to make a runner, it will tell me TypeError: cannot pickle '_jpype._JField' object

I only need one process (because mph only supports it), so I think pickle may not needed. Is there any method that can avoid pickle?

Thank you

@basnijholt
Copy link
Member

Try https://adaptive.readthedocs.io/en/latest/reference/adaptive.runner.extras.html#adaptive.runner.simple

Also, could you share your code (i.e., what have you tried exactly?)

@lsyxiaopang
Copy link
Author

Try https://adaptive.readthedocs.io/en/latest/reference/adaptive.runner.extras.html#adaptive.runner.simple

Also, could you share your code (i.e., what have you tried exactly?)

Thank you, it works! What a shame that I didn't fully read the document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants