diff --git a/examples/model_coupling/external-linearmodel-ascii.jl b/examples/model_coupling/external-linearmodel-ascii.jl index 75b46a9a..ddf396b0 120000 --- a/examples/model_coupling/external-linearmodel-ascii.jl +++ b/examples/model_coupling/external-linearmodel-ascii.jl @@ -1,14 +1 @@ -#TODO this does NOT work; `parameters` are not required to be Ordered Dictionary -paramfile = open("parameters.dat") -parameters = Meta.parse.(readlines(paramfile)) -close(paramfile) - -f(t) = parameters[1] * t - parameters[2] # a * t - b; linear model -times = 1:4 -predictions = map(f, times) - -predicfile = open("predictions.dat", "w") -for prediction in predictions - write(predicfile, string(prediction, "\n")) -end -close(predicfile) \ No newline at end of file +../models/external-linear-model/external-linearmodel-ascii.jl \ No newline at end of file diff --git a/examples/optimization/external-ascii-linearmodel.jl b/examples/optimization/external-ascii-linearmodel.jl index 75b46a9a..ddf396b0 120000 --- a/examples/optimization/external-ascii-linearmodel.jl +++ b/examples/optimization/external-ascii-linearmodel.jl @@ -1,14 +1 @@ -#TODO this does NOT work; `parameters` are not required to be Ordered Dictionary -paramfile = open("parameters.dat") -parameters = Meta.parse.(readlines(paramfile)) -close(paramfile) - -f(t) = parameters[1] * t - parameters[2] # a * t - b; linear model -times = 1:4 -predictions = map(f, times) - -predicfile = open("predictions.dat", "w") -for prediction in predictions - write(predicfile, string(prediction, "\n")) -end -close(predicfile) \ No newline at end of file +../models/external-linear-model/external-linearmodel-ascii.jl \ No newline at end of file