Open ajmacdonald opened 3 years ago
Some tool results can contain NaN as a value, which is not valid JSON. Using fetch to call these tools causes an error when response.json() fails.
fetch
response.json()
Some tools where this can occur: CorpusTerms, CorpusTermCorrelations.
CorpusTerm sets the comparisonRelativeFreqDifference to 0 if it is NaN. Should we do this for the other occurrences as well?
CorpusTerm
comparisonRelativeFreqDifference
Maybe it makes more sense to return null instead.
Also need to remove Infinity. This can occur in the CA/PCA/TSNE analysis tools.
Some tool results can contain NaN as a value, which is not valid JSON. Using
fetch
to call these tools causes an error whenresponse.json()
fails.Some tools where this can occur: CorpusTerms, CorpusTermCorrelations.
CorpusTerm
sets thecomparisonRelativeFreqDifference
to 0 if it is NaN. Should we do this for the other occurrences as well?