File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 816
816
let
817
817
@test_nowarn Catalyst. reactionsystem_uptodate_check ()
818
818
end
819
+
820
+ # Test that functions using the incidence matrix properly cache it
821
+ let
822
+ rn = @reaction_network begin
823
+ k1, A --> B
824
+ k2, B --> C
825
+ k3, C --> A
826
+ end
827
+
828
+ nps = Catalyst. get_networkproperties (rn)
829
+ @test isempty (nps. incidencemat) == true
830
+
831
+ img = incidencematgraph (rn)
832
+ @test size (nps. incidencemat) == (3 ,3 )
833
+
834
+ Catalyst. reset! (nps)
835
+ lcs = linkageclasses (rn)
836
+ @test size (nps. incidencemat) == (3 ,3 )
837
+
838
+ Catalyst. reset! (nps)
839
+ sns = subnetworks (rn)
840
+ @test size (nps. incidencemat) == (3 ,3 )
841
+
842
+ Catalyst. reset! (nps)
843
+ δ = deficiency (rn)
844
+ @test size (nps. incidencemat) == (3 ,3 )
845
+
846
+ Catalyst. reset! (nps)
847
+ δ_l = linkagedeficiencies (rn)
848
+ @test size (nps. incidencemat) == (3 ,3 )
849
+
850
+ Catalyst. reset! (nps)
851
+ rev = isreversible (rn)
852
+ @test size (nps. incidencemat) == (3 ,3 )
853
+
854
+ Catalyst. reset! (nps)
855
+ weakrev = isweaklyreversible (rn, sns)
856
+ @test size (nps. incidencemat) == (3 ,3 )
857
+ end
You can’t perform that action at this time.
0 commit comments