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

Model documentation fails to print #16

Closed
Tirillo opened this issue Apr 19, 2015 · 4 comments
Closed

Model documentation fails to print #16

Tirillo opened this issue Apr 19, 2015 · 4 comments

Comments

@Tirillo
Copy link

Tirillo commented Apr 19, 2015

After loading a model ("model = pysd.read_vensim('MVD.mdl')"), a command like "print model.components.doc()" does not work. IPython outputs:

AttributeError: component_class instance has no attribute 'doc'

@pbreach
Copy link
Contributor

pbreach commented Apr 23, 2015

I didn't see any method named doc but it looks like you could try str(model). Just browsing through as I am thinking of using this package for a project in the coming weeks

@pbreach
Copy link
Contributor

pbreach commented Apr 23, 2015

Sorry print model

@JamesPHoughton
Copy link
Collaborator

Hey guys, thanks for participating in the project - I'm glad its got some interest.

I've been doing a bit of restructuring on how the docs print, to try and make it most helpful in iPython. In this case, I think I updated the docs on this github page without updating the python package index. If you try updating the package, the model.components.doc() paradigm should be working now.

pip install pysd --upgrade

Let me know if you've got suggestions about how the docs functionality could be better, or anything else you'd like to see added to the project.

@Tirillo
Copy link
Author

Tirillo commented Apr 23, 2015

James,

Thanks very much, it now works perfectly. I am going to experiment with the package and drop a line if I have some suggestions to improve the package.

Regards,

Jan-Peter Vos

@JamesPHoughton JamesPHoughton changed the title Some not working functions Model documentation fails to print Jun 5, 2015
hyunjimoon added a commit to hyunjimoon/pysd that referenced this issue Aug 19, 2022
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

3 participants