Commit 03ac8dbe authored by Victor's avatar Victor
Browse files

decapitalising source file

parent b61a00d1
Pipeline #99101 canceled with stage
This diff is collapsed.
__precompile__(false)
module EvoId
using Distributions,LinearAlgebra,Reexport,StatsBase
using LightGraphs
......
......@@ -21,7 +21,7 @@ p1 = Dict{String,Any}();@pack! p1 = D,mu,NMax
D = [1.,1.];
mu = [1.,1.]
p2 = Dict{String,Any}();@pack! p2 = D,mu,NMax
D = [Int16(0.),[0.,0.]]
D = [Float16(0.),[0.,0.]]
p3 = Dict{String,Any}();@pack! p3 = D,mu,NMax
D = [0.,0.]
p4 = Dict{String,Any}();@pack! p4 = D,mu,NMax
......@@ -91,7 +91,7 @@ end
multispace = (DiscreteSegment{Int8}(1,9),RealSpace{3,Float64}(),)
K0 = 10000;
multia = [Agent(multispace, [rand(Int8(1):Int8(10)),randn(3) ],ancestors=true) for i in 1:K0]
D = [Int8(1),fill(1.,3)]
D = [Float16(1),fill(1.,3)]
mu = [1.,1.]
NMax = 1000
multip = Dict{String,Any}();@pack! multip = D,mu,NMax
......
......@@ -6,7 +6,7 @@ myspace = (GraphSpace(SimpleGraph(10,10)),RealSpace{1,Float64}())
myagents = [Agent(myspace,ancestors=true,rates=true) for i in 1:10]
d(X,Y,t) = gaussian(X[1],Y[1],1)
b(X,Y,t) = gaussian(X[1],0,1)
D = [Int16(1),Float64(1.)]
D = [Float32(1),Float64(1.)]
mu = [1.,1.]
NMax = 100
p = Dict{String,Any}();@pack! p = d,b,D,mu,NMax
......@@ -17,7 +17,7 @@ p = Dict{String,Any}();@pack! p = d,b,D,mu,NMax
@test typeof(myagents) <: Vector{A} where {A<:AbstractAgentM}
w = EvoId.World(myagents,myspace,p)
@test typeof(w.p["D"][1]) == Int64
@test typeof(w.p["D"][1]) == Float32
@test size(w) 10
newa = give_birth(1,w)
addAgent!(w,newa)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment