AlgebraicJulia / StockFlow.jl

https://algebraicjulia.github.io/StockFlow.jl/
MIT License
65 stars 6 forks source link

Causal loop F #114

Closed neonWhiteout closed 9 months ago

neonWhiteout commented 9 months ago

Introduces Causal Loop F: a causal loop diagram with polarities for each edge. Each polarity can be reinforcing, balancing, zero, unknown or not well defined.

Also adds a macro to construct it, \@causal_loop, and functions to graph it. Graph(cl) acts as a normal graph, Graph_RB(cl) graphs the polarities of cycles.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (e5eec69) 57.98% compared to head (20c39de) 61.47%.

Files Patch % Lines
src/visualization.jl 95.58% 3 Missing :warning:
src/CausalLoop.jl 98.59% 1 Missing :warning:
src/Syntax.jl 97.22% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #114 +/- ## ========================================== + Coverage 57.98% 61.47% +3.49% ========================================== Files 10 10 Lines 2016 2191 +175 ========================================== + Hits 1169 1347 +178 + Misses 847 844 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.