Tests and Fixes for utils-networks-misc.R#248
Merged
hechtlC merged 18 commits intose-sic:devfrom Jan 25, 2024
Leo-Send:pullrequest
Merged
Tests and Fixes for utils-networks-misc.R#248hechtlC merged 18 commits intose-sic:devfrom Leo-Send:pullrequest
hechtlC merged 18 commits intose-sic:devfrom
Leo-Send:pullrequest
Conversation
For testing purposes Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
to work if author list does not contain all authors from network and print a warning if that is the case Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
to have correct column- and rownames in the returned matrices Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
to give a warning if the matrices have differing column- or rownames. Also changed the documentation to reflect this Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
convert.adjacency.matrix.list.to.array now throws an error when used with empty list Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
Now named assert.sparse.matrices.equal and assert.networks.equal Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
hechtlC
requested changes
Jan 17, 2024
bockthom
requested changes
Jan 24, 2024
Collaborator
bockthom
left a comment
There was a problem hiding this comment.
Looks good to me @Leo-Send, I only found "a few" indentation or formatting issues 😉
I am not sure if you use tabs or spaces during implementation - it might be that the wrong indentation comes from using tabs instead of spaces - if so, please configure your IDE in such a way that it does not use tabs.
And there is one line where the code should be made fail save (but nothing critical, so no need to adjust the NEWS), and sometimes an additional comment would be helpful. See my detailed comments below.
bockthom
reviewed
Jan 25, 2024
Signed-off by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
bockthom
approved these changes
Jan 25, 2024
hechtlC
approved these changes
Jan 25, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
showcase.Rwith respect to my changes.dev.Description
This Pull request fixes #242
Changelog
Added
assert.sparse.matrices.equalfunction to compare two sparse matrices for equality for testing purposes (PR Tests and Fixes for utils-networks-misc.R #248, 9784cdf, d9f1a8d)util-networks.misc.Rfor issue Tests for functionality in util-networks-misc.R #242 (PR Tests and Fixes for utils-networks-misc.R #248, f3202a6, 030574b, 380b022, 8b803c5, 7335c3d, 6b600df)Changed/Improved
get.author.names.from.networkandget.author.names.from.datato always have the same output format. Now it doesn't depend on theglobalflag anymore (PR Tests and Fixes for utils-networks-misc.R #248, d87d325, ddbfe68)util-tensor.Rto correctly use the new output format ofget.author.names.from.network(PR Tests and Fixes for utils-networks-misc.R #248, 72b663e)convert.adjacency.matrix.list.to.arrayto throw an error if the function is called with wrong parameters (PR Tests and Fixes for utils-networks-misc.R #248, ece2d38, 1a3e510)compare.networkstoassert.networks.equalto better match the purpose of the function (PR Tests and Fixes for utils-networks-misc.R #248, d9f1a8d)Fixed
get.expanded.adjacencyto work if the provided author list does not contain all authors from network and add a warning when that happens since it causes some authors from the network to be lost in the resulting matrix (PR Tests and Fixes for utils-networks-misc.R #248, ff59017)get.expanded.adjacency.matricesto have correct names for the columns and rows (PR Tests and Fixes for utils-networks-misc.R #248, e72eff8)get.expanded.adjacency.cumulatedso that it works ifweightedparameter is set toFALSE(PR Tests and Fixes for utils-networks-misc.R #248, 2fb9a5d)