Skip to content

Generate class diagrams #152

Open
Open
@chendaniely

Description

@chendaniely

Class diagrams are really useful for people who will be contributing to the project. They will also help people who know how to program know what classes and methods are available.

If you have pylint installed, it comes with pyreverse

to generate the class diagram make sure you have mesa installed (e.g., via pip)
go into the base mesa folder (e.g. /home/dchen/git/forks/mesa) and run:

pyreverse -o png -p mesa mesa

It will call pyreverse, create a png file, using the package mesa, and look in the mesa directory for all the files.

It will generate something like below:
classes_mesa
packages_mesa

You will need to add the following files to .gitignore:

classes_mesa.png
packages_mesa.png

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions