Skip to content

Commit a99ac09

Browse files
authored
Merge pull request #12 from ChevronETC/julia07
Updates for Julia 0.7
2 parents 4ac6673 + 11bb396 commit a99ac09

17 files changed

+161
-173
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.5
7-
- 0.6
6+
- 0.7
87
- nightly
98
matrix:
109
allow_failures:

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
julia 0.5
1+
julia 0.7
22

33
LightXML
44
Documenter

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.6/julia-0.6-latest-win64.exe"
3+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
54

65
branches:
76
only:

benchmark/benchmarks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using TeaSeis, BenchmarkTools
1+
using TeaSeis, BenchmarkTools, Random
22

33
const fs="."
44
const N1,N2,N3,N4,N5=100,11,12,2,3
@@ -62,7 +62,7 @@ function makepartialframe()
6262
f = makefname()
6363
io = jsopen(f,"w",axis_lengths=[N1,N2,1])
6464
d,h = allocframe(io)
65-
srand(0)
65+
Random.seed!(0)
6666
rand!(d)
6767
alive = fill(false, N2)
6868
alive[randperm(N2)[1:div(N2,2)]] .= true

demo/demo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trcs, hdrs = allocframe(io)
3232
for ifrm = 1:size(io,3)
3333
readframe!(io, trcs, hdrs, ifrm)
3434
data_read[:,:,ifrm] = trcs
35-
write(STDOUT, "read frame, trcs and hdrs API $(get(prop(io,stockprop[:FRAME]),hdrs[:,1]))\n")
35+
write(stdout, "read frame, trcs and hdrs API $(get(prop(io,stockprop[:FRAME]),hdrs[:,1]))\n")
3636
end
3737

3838
# demonstrate that the extrema of the written and read data agree with each other:

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ using Documenter, TeaSeis
33
makedocs(
44
modules = [TeaSeis]
55
)
6-
cp("build/README.md", "../README.md", remove_destination=true)
6+
cp("build/README.md", "../README.md", force=true)

src/TeaSeis.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
__precompile__()
2-
31
module TeaSeis
42

5-
using LightXML
3+
using Dates, LightXML
64

75
import
86
Base.==,

src/dataproperty.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
immutable DataProperty
1+
struct DataProperty
22
label::String
33
format::Type
44
value::Any
55
end
66

7-
function DataProperty{T<:Real}(label::String, formatstring::String, value::T)
7+
function DataProperty(label::String, formatstring::String, value::T) where T<:Real
88
format = Int32
99
if formatstring == "int"
1010
format = Int32

src/extent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Extent
1+
mutable struct Extent
22
name::String
33
path::String
44
index::Int32

src/geometry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
immutable Geometry
1+
struct Geometry
22
u1::Int
33
un::Int
44
v1::Int

0 commit comments

Comments
 (0)