Closed biphy closed 9 months ago
It's looking great! I think for the test you could simply have a file that shows how would you call the function draw_connectivity
and let it generate a couple of networks inside /test/draw_connectivity/
. You can place the test file inside that folder too.
I added tests to compare raster images produced by draw_connectivity
with pre-made references. They are very strict tests that compare matrices of pixels to see if two images are identical and thus might be buggy in some cases. The reference images must be replaced whenever the visualization module (including default visualization parameters) is updated.
A new function
draw_connectivity
visualizes connectivity matrices as shown in the attatched figure.It connects nodes by arrows representing either positive (
--->
) or negative (---|
) interactions between them. Optional information on the node types (whether they get coherent or incoherent inputs) and the cycle types (positive or negative) is annotated as well if provided, as shown in the 5th example.