diff --git a/src/SGEArrays.jl b/src/SGEArrays.jl index b491adb..078a687 100644 --- a/src/SGEArrays.jl +++ b/src/SGEArrays.jl @@ -1,9 +1,9 @@ ## SGEArrays.jl. Iterators for use in conjunction with Sun Grid Engine ## (c) 2014 David A. van Leeuwen ## -Module SGEArrays +module SGEArrays -export issgearray, sgearray +export issgearray, SGEArray include("sgetypes.jl") include("sgearray.jl") diff --git a/src/sgearray.jl b/src/sgearray.jl index 510c7e5..9d22d68 100644 --- a/src/sgearray.jl +++ b/src/sgearray.jl @@ -2,7 +2,7 @@ ## (c) 2014 David A. van Leeuwen ## -issge() = haskey(ENV, "SGE_TASK_ID") && haskey(ENV, "SGE_TASK_LAST") +issgearray() = haskey(ENV, "SGE_TASK_ID") && haskey(ENV, "SGE_TASK_LAST") Base.start(sge::SGEArray) = sge.start Base.done(sge::SGEArray, state::Int) = state > length(sge.array) diff --git a/src/sgetypes.jl b/src/sgetypes.jl index d47d486..a505a80 100644 --- a/src/sgetypes.jl +++ b/src/sgetypes.jl @@ -9,7 +9,7 @@ type SGEArray step::Int array::Array function SGEArray(a::Array) - if !issge() + if !issgearray() a else start = int(ENV["SGE_TASK_ID"])