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

Empty compartments become "recreated" even tho interactions wouldn't allow that #86

Open
465b opened this issue Jul 24, 2020 · 0 comments
Labels
bug Something isn't working minor minor issue

Comments

@465b
Copy link
Owner

465b commented Jul 24, 2020

# reimporting model to guarantee "default" config
model = nemf.load_model('phyto_sup_network_test.yml')

# Removing predator
model.compartment['Z']['value'] = 0
model.compartment['N']['value'] = 1e4
inwards_fixed_quadratic_balancing,outwards_fixed_quadratic_balancing = quadratic_balancing(equilibrium_point=1e6)
nemf.models.import_interaction_functions([inwards_fixed_quadratic_balancing,outwards_fixed_quadratic_balancing])

model = nemf.forward_model(model,method='Radau')

fig = nemf.plot.draw_output_summary(model)
fig.set_figwidth(7)
fig.set_figheight(3)
fig.set_dpi(150)
ax = fig.get_axes()[0]
ax.set_ylim(-1e3,1.2e4)
ax.set_xlim(0,2e6)

phyto_sup_network_test.txt
bug.pdf

@465b 465b added bug Something isn't working minor minor issue labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor minor issue
Projects
None yet
Development

No branches or pull requests

1 participant