From de783e221c0c26b55f38d61da886e44a8d03deca Mon Sep 17 00:00:00 2001 From: George Datseris Date: Mon, 24 Sep 2018 12:55:37 +0200 Subject: [PATCH] add some clarifying comments --- docs/src/customprocessing.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/customprocessing.md b/docs/src/customprocessing.md index 2655a47..5a3b296 100644 --- a/docs/src/customprocessing.md +++ b/docs/src/customprocessing.md @@ -73,6 +73,7 @@ include("2Dfield_crossprediction.jl") include("2Dfield_temporalprediction.jl") ``` +Let's say we have saved this file as `stexamples.jl`. Then, you want to properly define a pre-processing function: ```julia function replace_includes(str) @@ -80,6 +81,8 @@ function replace_includes(str) included = ["1Dfield_temporalprediction.jl", "2Dfield_crossprediction.jl", "2Dfield_temporalprediction.jl"] + # Here path loads the files from their proper directory, + # which may not be the directory of the `stexamples.jl` file! path = dirname(dirname(pathof(TimeseriesPrediction)))*"/examples/" for ex in included