We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by anubhavdas0907 March 8, 2022 Hello Christian,
I was trying to copy a community model to a different variable, but I get an error. I want to manipulate a model, without changing the original one.
Following are the details.
from micom import load_pickle model = load_pickle("ERR1883210.pickle") model_1 = model.copy()
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/Conda_base/envs/MyConda/lib/python3.7/site-packages/cobra/core/model.py", line 321, in copy new = self.__class__() TypeError: __init__() missing 1 required positional argument: 'taxonomy'
Can you please suggest, what's wrong in this code, and what can be the solution?
Regards Anubhav
The text was updated successfully, but these errors were encountered:
Sorry about that I haven't overwritten the copy function yet. For now you can just read the model again and that should have the same effect, like:
from micom import load_pickle model = load_pickle("ERR1883210.pickle") model_1 = load_pickle("ERR1883210.pickle") # that's basically a copy
Sorry, something went wrong.
Hello Christian,
Thanks for suggesting that solution. I will try that.
No branches or pull requests
Discussed in #69
Originally posted by anubhavdas0907 March 8, 2022
Hello Christian,
I was trying to copy a community model to a different variable, but I get an error.
I want to manipulate a model, without changing the original one.
Following are the details.
Can you please suggest, what's wrong in this code, and what can be the solution?
Regards
Anubhav
The text was updated successfully, but these errors were encountered: