Mostly things at the top scope and in a function work the same, but type
inference is different in global scope which can affect things. It would be
helpful to see the code you're running (or a reduced version of it).


On Fri, Aug 29, 2014 at 7:40 AM, RecentConvert <[email protected]> wrote:

> How does Julia treat an inputless function as compared to a script with
> the same contents?
>
> Normally I create a function by first coding it as a script as it's easier
> to access the variables for testing. Once that is done I do the simple
> conversions to a function. Unfortunately in this case it changed the
> outcome of the code. If I comment out the function line and it's
> corresponding end then the code works as it should. If I put them back in
> it fails.
>
> The script itself sequentially loads files in groups and averages the data
> within before saving the averaged data to a new file.
>
> Julia 0.2.1
> Windows 7 64-bit
> *Packages Used*
>
>    - DataFrames
>    - Datetime (I know, Dates exists but I haven't had time to make the
>    update)
>
>
>

Reply via email to