Hello,
Is there a way to visualise my RiskScape pipeline?
I sometimes lose track of what the engine is doing and in what order, so I’d imagine that that would be a useful feature.
Thanks,
Luisa
Hello,
Is there a way to visualise my RiskScape pipeline?
I sometimes lose track of what the engine is doing and in what order, so I’d imagine that that would be a useful feature.
Thanks,
Luisa
Hi Luisa,
Why yes, there is a way! Although you need to use graphviz to turn it in to an image.
The model run command has a --graph
option that prints out a graph of the pipeline in dot format. You can then turn this in to a .png
like so:
riskscape -P examples/getting-started model run total-exposed --graph | dot -Tpng > graph.png
If you don’t have graphviz installed, you can copy and paste the output in to an online graphviz tool like edotor.
Let us know if it proves useful, or if there are other features we could add that might make it better for you.
Cheers,
Nick
Hi Nick,
Cool, that’s helpful! And motivating to actually name the steps in my pipelines. Thanks!
Just an idea but I am wondering if it would be possible to have an option to visually group parts of the pipeline by using different colors. For example, if I have a “sub-pipeline” to select and process my hazards that is then joined with the exposure data, this first hazard sub-pipeline could be colored red, and then after joining the following sub-pipeline could turn blue or something like that. And if I later on have an additional layer coming in that I first need to filter, that could be a green sub-pipeline that joins into the blue pipeline, so that afterwards the steps until the output generation are coloured purple. (Bonus points if the color selection follows color mixing theory haha)
Cheers,
Luisa