Skip to content

Commit

Permalink
All tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeMarshall committed Oct 21, 2024
1 parent f3ae466 commit 1bfbe56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using DataFrames
meancoloccs::Int64,
rowprefix::String = "Releve", colprefix::String = "Species",
rowdim::String = "Releve", coldim::String = "Species",
sparse::Bool = false)
sparse_array::Bool = false)
Create a `rown` by `coln` NamedArray object containing random values.
Expand All @@ -21,7 +21,7 @@ Create a `rown` by `coln` NamedArray object containing random values.
- `colprefix::String`: The prefix to the column number. "Species" by default.
- `rowdim::String`: The row dimension name. "Releve" by default.
- `coldim::String`: The column dimension name. "Species" by default.
- `sparse::Bool`: If true a names sparse matrix is returned. If false a named dense matrix is returned. false by default.
- `sparse_array::Bool`: If true a names sparse matrix is returned. If false a named dense matrix is returned. false by default.
...
# Examples
Expand Down
8 changes: 4 additions & 4 deletions test/test_SimilarityIndices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ using NamedArrays
using SparseArrays

@testset "SimilarityIndices.jl" begin
x = VegSci.generate_test_array(rown = 10, coln = 10, meancoloccs = 6, rowprefix = "SiteA-", colprefix = "Species", sparse = false)
y = VegSci.generate_test_array(rown = 5, coln = 10, meancoloccs = 6, rowprefix = "SiteB-", colprefix = "Species", sparse = false)
x = VegSci.generate_test_array(rown = 10, coln = 10, meancoloccs = 6, rowprefix = "SiteA-", colprefix = "Species", sparse_array = false)
y = VegSci.generate_test_array(rown = 5, coln = 10, meancoloccs = 6, rowprefix = "SiteB-", colprefix = "Species", sparse_array = false)
xy = VegSci.merge_namedarrays([x, y])
x_sparse = VegSci.generate_test_array(rown = 10, coln = 10, meancoloccs = 6, rowprefix = "SiteA-", colprefix = "Species", sparse = true)
y_sparse = VegSci.generate_test_array(rown = 5, coln = 10, meancoloccs = 6, rowprefix = "SiteB-", colprefix = "Species", sparse = true)
x_sparse = VegSci.generate_test_array(rown = 10, coln = 10, meancoloccs = 6, rowprefix = "SiteA-", colprefix = "Species", sparse_array = true)
y_sparse = VegSci.generate_test_array(rown = 5, coln = 10, meancoloccs = 6, rowprefix = "SiteB-", colprefix = "Species", sparse_array = true)
xy_sparse = VegSci.merge_namedarrays([x, y])
@testset "steinhaus_coefficient" begin
steinhaus_results = VegSci.steinhaus_coefficient(x, y)
Expand Down

0 comments on commit 1bfbe56

Please sign in to comment.