diff options
author | Muriithi Frederick Muriuki | 2021-08-20 14:14:12 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2021-08-20 14:14:12 +0300 |
commit | 96af4e9e32ed167a8d70cf7761b709b1a37bb344 (patch) | |
tree | ddee57af7088bdb91f3cb7fe4d0ff3deaf5baf84 /gn3/computations | |
parent | 8b2c776771d2a70613a1e31d6e6671b612cfbafc (diff) | |
download | genenetwork3-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')
-rw-r--r-- | gn3/computations/heatmap.py | 4 |
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( |