From 67bd1e4dcafc03150ef28df1d6aba8b0bb006c5c Mon Sep 17 00:00:00 2001 From: monty Date: Thu, 8 Aug 2024 15:16:21 -0600 Subject: [PATCH] link fix --- .../model_coupling/external-linearmodel-ascii.jl | 15 +-------------- .../optimization/external-ascii-linearmodel.jl | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) 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