Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more comprehensive error message to dna_network when all documents are excluded #109

Open
JBGruber opened this issue Jan 22, 2018 · 0 comments
Assignees
Labels
enhancement rDNA Issues related to rDNA version 2.0 version 3.0 Issues relating to version 3.0, including rDNA
Milestone

Comments

@JBGruber
Copy link
Collaborator

Code for reproducing the error:

library("rDNA")
dna_init("dna-2.0-beta20.jar")
conn <- dna_connection("sample.dna")

congruence <- dna_network(conn, 
                          networkType = "onemode", 
                          statementType = "DNA Statement", 
                          timewindow = "days", 
                          windowsize = 11,
                          duplicates = "document",
                          excludeSources = "109")

Error message reads:
0 out of 41 statements retained. Error in .jcall(connection$dna_connection, "[J", "getTimeWindowTimes", : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Should be something more comprehensible like:
"Your exclude options removed all documents while retrieving a network. Nothing left to compute.".

@leifeld leifeld added network algorithms Issues related to network algorithms in DNA and removed version 2.0 labels Feb 17, 2019
@leifeld leifeld added this to the Version 2.0 beta 25 milestone Feb 17, 2019
@leifeld leifeld self-assigned this Jan 3, 2023
@leifeld leifeld modified the milestones: DNA 3.0.10, DNA 3.0.9 Jan 3, 2023
@leifeld leifeld added rDNA Issues related to rDNA version 3.0 Issues relating to version 3.0, including rDNA version 2.0 and removed network algorithms Issues related to network algorithms in DNA labels Jan 3, 2023
@leifeld leifeld modified the milestones: DNA 3.0.9, DNA 3.0.10 Jan 8, 2023
@leifeld leifeld assigned TimHenrichsen and unassigned leifeld Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rDNA Issues related to rDNA version 2.0 version 3.0 Issues relating to version 3.0, including rDNA
Projects
None yet
Development

No branches or pull requests

3 participants