unifhy-org / unifhy

A Unified Framework for Hydrology
https://unifhy-org.github.io/unifhy
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Update documentation to include Nutrient Components #99

Open mattjbr123 opened 1 week ago

mattjbr123 commented 1 week ago

Documentation needs some small updates to incorporate the addition of Nutrient Components (#14)

mattjbr123 commented 1 week ago

@ThibHlln how did you generate the nice diagram at https://unifhy-org.github.io/unifhy/api_reference.html ? It would be nice to create an up to date one with the Nutrient Components in.

mattjbr123 commented 1 week ago

Changes to make:

User Guide

Tutorial

Contributor Guide

Development

ThibHlln commented 1 week ago

@ThibHlln how did you generate the nice diagram at https://unifhy-org.github.io/unifhy/api_reference.html ? It would be nice to create an up to date one with the Nutrient Components in.

Hi @mattjbr123,

I used GraphViz and specified the relationships "manually" in a file using the DOT language.

I had created a simplified one: unifhy-simplified+uml gv

and a more extensive version: unifhy-uml+diagram gv

In order to feed our discussions from a while ago on the inclusion of the nutrient cycle in unifhy, I had also created this one: unifhy-simplified+uml-with+nutrients gv

But I don't think it represents what you have actually done, so it will certainly need adjusting, but this could be a starting point.

Once you have installed graphviz (e.g. with a mamba install graphviz), you can use the following commands to go from the DOT language files to PNG/SVG files: dot -Tpng unifhy-uml+diagram.gv -o png-unifhy+diagram.gv.png dot -Tsvg unifhy-uml+diagram.gv -o png-unifhy+diagram.gv.svg

I am attaching the files used to generate the three figures presented above: unifhy-uml_diagrams.zip

There are also tools that create UML class diagrams automatically (e.g. pyreverse in pylint), if you want to explore that route. Then, you will still need to manually handle the visual rendering.

Let me know if you need more info.

Cheers, T

mattjbr123 commented 1 week ago

Great, thanks, this definitely gives me something to go on!

mattjbr123 commented 1 week ago

Updated diagram, simplified version: unifhy-simplified-with-nutrients-Matt-uml