aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/heatmap.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-20 14:14:12 +0300
committerMuriithi Frederick Muriuki2021-08-20 14:14:12 +0300
commit96af4e9e32ed167a8d70cf7761b709b1a37bb344 (patch)
treeddee57af7088bdb91f3cb7fe4d0ff3deaf5baf84 /gn3/computations/heatmap.py
parent8b2c776771d2a70613a1e31d6e6671b612cfbafc (diff)
downloadgenenetwork3-96af4e9e32ed167a8d70cf7761b709b1a37bb344.tar.gz
Fix typing issue(s) caught by mypy
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * gn3/computations/heatmap.py: Use `Sequence` type not `Iterator` type
Diffstat (limited to 'gn3/computations/heatmap.py')
-rw-r--r--gn3/computations/heatmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/computations/heatmap.py b/gn3/computations/heatmap.py
index 5a3c619..c9c2b8a 100644
--- a/gn3/computations/heatmap.py
+++ b/gn3/computations/heatmap.py
@@ -156,8 +156,8 @@ def heatmap_data(formd, search_result, conn: Any):
traits_details = [
__retrieve_traitlist_and_datalist(threshold, fullname)
for fullname in search_result]
- traits_list = map(lambda x: x[0], traits_details)
- traits_data_list = map(lambda x: x[1], traits_details)
+ traits_list = tuple(x[0] for x in traits_details)
+ traits_data_list = tuple(x[1] for x in traits_details)
return {
"target_description_checked": formd.formdata.getvalue(