From 5a8f4f3c85be4645c9a918bc25397170f4370341 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Tue, 20 Jul 2021 14:13:21 +0300 Subject: Add test for code to move over from GN1 Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * .gitignore: ignore emacs temporary files * gn3/computations/correlations2.py: add a dummy function * tests/unit/computations/test_correlation.py: add unit tests for the function As part of the move of the clustering and heatmap code over from GN1 to GN3, this commit begins by providing some unit tests for the correlation function used to ensure that the implementation that is built up here corresponds, and produces the same results as the original. This tests and the function might change in the new system, but for now, we try and maintain bug-to-bug compatibility. --- gn3/computations/correlations2.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gn3/computations/correlations2.py (limited to 'gn3') diff --git a/gn3/computations/correlations2.py b/gn3/computations/correlations2.py new file mode 100644 index 0000000..193f646 --- /dev/null +++ b/gn3/computations/correlations2.py @@ -0,0 +1,4 @@ +## From GN1: mostly for clustering and heatmap generation + +def compute_correlation(dbdata, userdata): + return tuple() -- cgit v1.2.3