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

Error in Example "Modelling the diurnal cycle" #1

Open
bigsuicideparty opened this issue Apr 22, 2022 · 1 comment
Open

Error in Example "Modelling the diurnal cycle" #1

bigsuicideparty opened this issue Apr 22, 2022 · 1 comment

Comments

@bigsuicideparty
Copy link

I ran into a few issues with example "Modelling the diurnal cycle"

I was not able to import comets as c, so I changed it to import cometspy as c

After running the script

simulation = c.comets(layout, sim_params) gave me [ValueError: the initial pop of a model is outside of layout.grid. Either increase layout.grid or adjust COBRAModel's initial_pop]()

Any idea what might be the issue?

@dukovski
Copy link
Contributor

Did you install comets? You can get it at runcomets.org.

If you did install comets, this error seems like you are assigning biomass to a nonexisting point in the grid. For example, if the grid was 1x1 points, you assigned biomass to point x=5 y=3 or so. Make sure that your point in a 1x1 grid is (0,0).

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