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

The code in the tutorial breaks #431

Closed
VianneyMI opened this issue Dec 31, 2023 · 5 comments
Closed

The code in the tutorial breaks #431

VianneyMI opened this issue Dec 31, 2023 · 5 comments

Comments

@VianneyMI
Copy link

Hello,

I am trying to follow the tutorial/documentation but model.run() breaks.

image

Environment:

  • python 3.11
  • pysd 3.13.0

Of course, installing netCDF4 solves the problem. But I think it should be mentionned in the doc or it should be marked as a required dependency of your project.

@enekomartinmartinez
Copy link
Collaborator

Thanks, @VianneyMI, for opening this issue.

Could you specify which tutorial you were following?

@VianneyMI
Copy link
Author

The getting started part of the doc: https://pysd.readthedocs.io/en/master/getting_started.html

The line stocks = model.run() requires an external library to work

@enekomartinmartinez
Copy link
Collaborator

Thank you,

This seems to be a bug. Regular runs shouldn't load the netCDF4 library. I will check, correct, and test that as soon as I have some free time.

@enekomartinmartinez
Copy link
Collaborator

Hi @VianneyMI
It is solved in the master branch. I will create a release soon.

@VianneyMI
Copy link
Author

Awesome. Thanks for the reactivity.

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