Skip to content

Commit 8c37aa6

Browse files
authored
Merge pull request #5 from meggart/NamedTuple
Implement interface for Named Tuples
2 parents e8113b9 + 0775b90 commit 8c37aa6

File tree

14 files changed

+156
-102
lines changed

14 files changed

+156
-102
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/CI.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
tags: '*'
8+
jobs:
9+
test:
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
version:
16+
- '1'
17+
- 'nightly'
18+
os:
19+
- ubuntu-latest
20+
- macOS-latest
21+
- windows-latest
22+
arch:
23+
- x64
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
arch: ${{ matrix.arch }}
30+
- uses: actions/cache@v1
31+
env:
32+
cache-name: cache-artifacts
33+
with:
34+
path: ~/.julia/artifacts
35+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36+
restore-keys: |
37+
${{ runner.os }}-test-${{ env.cache-name }}-
38+
${{ runner.os }}-test-
39+
${{ runner.os }}-
40+
- uses: julia-actions/julia-buildpkg@v1
41+
- uses: julia-actions/julia-runtest@v1
42+
- uses: julia-actions/julia-processcoverage@v1
43+
- uses: codecov/codecov-action@v1
44+
with:
45+
file: lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 00 * * *'
6+
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/setup-julia@latest
12+
with:
13+
version: 1.3
14+
- name: Pkg.add("CompatHelper")
15+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16+
- name: CompatHelper.main()
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 0 * * *
3+
issue_comment:
4+
types:
5+
- created
56
workflow_dispatch:
67
jobs:
78
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
810
runs-on: ubuntu-latest
911
steps:
1012
- uses: JuliaRegistries/TagBot@v1

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

Manifest.toml

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# This file is machine-generated - editing it directly is not advised
22

3+
[[ArgTools]]
4+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
5+
6+
[[Artifacts]]
7+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
8+
39
[[Base64]]
410
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
511

@@ -13,26 +19,46 @@ version = "0.17.11"
1319
deps = ["Printf"]
1420
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
1521

16-
[[DiskArrays]]
17-
git-tree-sha1 = "3bfd0eb19711297e1b3656b7d4709f7b4b240195"
18-
uuid = "3c3547ce-8d99-4f5e-a174-61eb10b00ae3"
19-
version = "0.2.4"
20-
21-
[[Distributed]]
22-
deps = ["Random", "Serialization", "Sockets"]
23-
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
22+
[[Downloads]]
23+
deps = ["ArgTools", "LibCURL", "NetworkOptions"]
24+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
2425

2526
[[InteractiveUtils]]
2627
deps = ["Markdown"]
2728
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2829

30+
[[LibCURL]]
31+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
32+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
33+
34+
[[LibCURL_jll]]
35+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
36+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
37+
38+
[[LibSSH2_jll]]
39+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
40+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
41+
42+
[[Libdl]]
43+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
44+
2945
[[Logging]]
3046
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
3147

3248
[[Markdown]]
3349
deps = ["Base64"]
3450
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
3551

52+
[[MbedTLS_jll]]
53+
deps = ["Artifacts", "Libdl"]
54+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
55+
56+
[[MozillaCACerts_jll]]
57+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
58+
59+
[[NetworkOptions]]
60+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
61+
3662
[[OrderedCollections]]
3763
deps = ["Random", "Serialization", "Test"]
3864
git-tree-sha1 = "c4c13474d23c60d20a67b217f1d7f22a40edf8f1"
@@ -59,11 +85,8 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
5985
[[Serialization]]
6086
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
6187

62-
[[Sockets]]
63-
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
64-
6588
[[Test]]
66-
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
89+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
6790
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6891

6992
[[UUIDs]]
@@ -72,3 +95,11 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
7295

7396
[[Unicode]]
7497
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
98+
99+
[[Zlib_jll]]
100+
deps = ["Libdl"]
101+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
102+
103+
[[nghttp2_jll]]
104+
deps = ["Artifacts", "Libdl"]
105+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.2.2"
66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
88
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
9+
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
910
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1011

1112
[compat]

appveyor.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/YAXArrayBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ using DataStructures: OrderedDict
44

55
include("datasets/datasetinterface.jl")
66
include("axisarrays/axisinterface.jl")
7+
include("axisarrays/namedtuple.jl")
78

89
defaultfillval(T::Type{<:AbstractFloat}) = convert(T,1e32)
910
defaultfillval(::Type{Float16}) = Float16(3.2e4)

src/axisarrays/archgdal.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function dimname(::AbstractRasterBand, i)
4040
elseif i == 2
4141
return :X
4242
else
43-
error("RasterDataset only has 3 dimiensions")
43+
error("RasterDataset only has 3 dimensions")
4444
end
4545
end
4646
function dimvals(b::AbstractRasterBand, i)
@@ -50,7 +50,7 @@ function dimvals(b::AbstractRasterBand, i)
5050
elseif i == 2
5151
range(geo[4],length=height(b), step=geo[6])
5252
else
53-
error("RasterDataset only has 3 dimiensions")
53+
error("RasterDataset only has 3 dimensions")
5454
end
5555
end
5656
iscontdim(a::AbstractRasterBand, i) = true

0 commit comments

Comments
 (0)