Also, the standard extension for Julia files is .jl not .ju.

On Thu, May 22, 2014 at 3:04 PM, John Myles White
<[email protected]>wrote:

> This is probably a problem because you're using an RTF file, which likely
> contains mostly garbage rather than the actual code you want to run.
>
>  -- John
>
> On May 22, 2014, at 12:02 PM, Alexander Dubbs <[email protected]>
> wrote:
>
> The following code gives the following error, and I have no idea why.
>  There are no comprehensions.  I write require("loaddataju.ju.rtf"), which
> is below, and get the error:
>
> ERROR: syntax: invalid comprehension syntax
>  in include at boot.jl:238
>  in include_from_node1 at loading.jl:114
>  in reload_path at loading.jl:140
>  in _require at loading.jl:58
>  in require at loading.jl:46
> at /Users/alexdubbs/Dropbox/Kaggle/model6/loaddataju.ju.rtf:12
>
> loaddataju.ju.rtf is as follows:
>
> Xin = cell(23)
> n = cell(23)
> y = cell(16)
>
> for i = 1:16
>             Xin[i] = readcsv(@sprintf("X%d.txt",i))
>             n[i] = int(readcsv(@sprintf("n%d.txt",i)))
>             y[i] = readcsv(@sprintf("y%d.txt",i))
>             @printf("%d ",i)
> end
>
> for i = 17:23
>             Xin[i] = readcsv(@sprintf("X%d.txt",i))
>             n[i] = int(readcsv(@sprintf("n%d.txt",i)))
>             @printf("%d ",i)
> end
>
> X = cell(23)
> for i = 1:23
>             X[i] = reshape(Xin[i],n[i][1],n[i][2],n[i][3])
> end
>
>
> Thanks all.
>
> AJD
>
>
>

Reply via email to