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

KeyError: 'pigment' #151

Open
ssssskyeeeee opened this issue Nov 27, 2024 · 1 comment
Open

KeyError: 'pigment' #151

ssssskyeeeee opened this issue Nov 27, 2024 · 1 comment

Comments

@ssssskyeeeee
Copy link

ssssskyeeeee commented Nov 27, 2024

When I run the model reconstruction code, I always get an error message saying that the pigment key is error, can it help me solve the problem

from modelseedpy import MSBuilder, MSGenome
from modelseedpy.helpers import get_template
from modelseedpy.core.mstemplate import MSTemplateBuilder
template = MSTemplateBuilder.from_dict(get_template('template_core')).build()
Traceback (most recent call last):
File "", line 1, in
File "/public/home/luluotian/application/modelseed/ModelSEEDpy/modelseedpy/core/mstemplate.py", line 1636, in build
list(
File "/public/home/luluotian/application/modelseed/ModelSEEDpy/modelseedpy/core/mstemplate.py", line 1637, in
map(lambda x: MSTemplateBiomass.from_dict(x, template), self.biomasses)
File "/public/home/luluotian/application/modelseed/ModelSEEDpy/modelseedpy/core/mstemplate.py", line 646, in from_dict
d["pigment"],
KeyError: 'pigment'

@Fxe
Copy link
Contributor

Fxe commented Dec 2, 2024

Thanks for reporting, we will post a fix later this week!

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