Skip to content

Commit 5549e67

Browse files
committed
Return vector instead of dict in spectralindices
1 parent ec9b98b commit 5549e67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/transforms/spectralindex.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100
101101
List of spectral indices supported by SpectralIndices.jl.
102102
"""
103-
spectralindices() = indices
103+
spectralindices() = collect(values(indices))
104104

105105
"""
106106
spectralbands(name)

test/transforms/spectralindex.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
@test T(t).NDVI [0.6, 0.42857142857142855, 0.3333333333333333]
3737

3838
# auxiliary functions
39-
@test spectralindices() isa Dict
39+
@test spectralindices() isa Vector
4040
@test spectralbands("NDVI") isa Vector
4141
end

0 commit comments

Comments
 (0)