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

Unable to deep copy environment #338

Open
xtjjyygy opened this issue Jun 17, 2022 · 3 comments
Open

Unable to deep copy environment #338

xtjjyygy opened this issue Jun 17, 2022 · 3 comments
Labels
type/enhancement 🚀 New feature or request

Comments

@xtjjyygy
Copy link

Describe the problem or improvement suggested

When branching, I want to deep copy multiple branch environments, but copy.deepcopy does not work, error is "TypeError: can't pickle ObservationFunction objects",

Environment like this:
image

Thank you

Describe the solution you would like

Describe alternatives you have considered

Additional context

@xtjjyygy xtjjyygy added the type/enhancement 🚀 New feature or request label Jun 17, 2022
@AntoinePrv
Copy link
Member

Hi @xtjjyygy,
We'd also love to provide this feature, but there we would need to deep copy a SCIP object, which is not possible right now.

@xtjjyygy
Copy link
Author

@AntoinePrv Thank you for your reply, I've tried writing __ deepcopy__ Method to copy multiple inherited classes, but ecole core. scip.Model class No constructor defined,Very frustrating. I wonder if you have a detailed plan to develop this feature. If it is convenient, I can also participate in the development of this feature. Thank you again!

@Wastedzz
Copy link

@AntoinePrv Thank you for your reply, I've tried writing __ deepcopy__ Method to copy multiple inherited classes, but ecole core. scip.Model class No constructor defined,Very frustrating. I wonder if you have a detailed plan to develop this feature. If it is convenient, I can also participate in the development of this feature. Thank you again!

Hello, I have met the same issue, have it been fixed now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants