Skip to content

Commit

Permalink
Merge pull request emit-sds#18 from vatsal-j/issue-15
Browse files Browse the repository at this point in the history
Issue emit-sds#15 - GHA test fails
  • Loading branch information
pgbrodrick authored Jul 18, 2024
2 parents a7941e1 + dcad07b commit 5cc62a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manifest.toml
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name = "SpectralUnmixing"
uuid = "18035c97-8b76-4bd8-9b58-2d1c7240eddc"
authors = ["Phil Brodrick <[email protected]>"]
version = "0.2.2"

Expand Down Expand Up @@ -27,3 +28,4 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7 changes: 3 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

using Test

using SpectralUnmixing

datafile = "data/basic_endmember_library.csv"
datafile = joinpath(@__DIR__, "../data/basic_endmember_library.csv")
classname = "Class"

@info "Basic Loading"
Expand Down Expand Up @@ -89,11 +89,10 @@ for mode in ["sma", "sma-best", "mesma", "mesma-best"]
end

@info "Unmix Pixel - Mode: " * mode
@time mr, mv, cfr, cfv = unmix_pixel(unmixing_library, simulated_rfl, nothing, class_idx, options, mode, n_mc,
@time mr, mv, cfr, cfv = unmix_pixel(unmixing_library, simulated_rfl, nothing, class_idx, options, mode, n_mc,
num_endmembers, normalization, optimization, max_combinations, combination_type)
@test sum(mr[1:end-1]) 1
@test size(mr) == size(mv)
@test sum(cfr[1:end-1]) 1
@test size(cfr) == size(cfv)
end

0 comments on commit 5cc62a2

Please sign in to comment.