diff options
author | Arun Isaac | 2022-09-29 22:43:46 +0530 |
---|---|---|
committer | Arun Isaac | 2022-09-29 22:43:46 +0530 |
commit | 68ce576df9ae335d0526d4537bf0f5714d24bf71 (patch) | |
tree | a0a5134aa787bd973a1184b8ba0077f4680747f5 | |
parent | 0c71c536e503b0d77d7bea057370c49ec00f5225 (diff) | |
download | genenetwork2-68ce576df9ae335d0526d4537bf0f5714d24bf71.tar.gz |
Curry function passed to Maybe.apply.
* wqflask/wqflask/gsearch.py (GSearch.__init__): Curry function passed
to Maybe.apply to construct the display name.
-rw-r--r-- | wqflask/wqflask/gsearch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/gsearch.py b/wqflask/wqflask/gsearch.py index ee1291be..34368e88 100644 --- a/wqflask/wqflask/gsearch.py +++ b/wqflask/wqflask/gsearch.py @@ -88,8 +88,8 @@ class GSearch: trait["display_name"] = trait["name"] inbredsetcode = trait.pop("inbredsetcode") if inbredsetcode.map(len) == Just(3): - trait["display_name"] = (Maybe.apply(lambda inbredsetcode, name: - f"{inbredsetcode}_{name}") + trait["display_name"] = (Maybe.apply( + curry(2, lambda inbredsetcode, name: f"{inbredsetcode}_{name}")) .to_arguments(inbredsetcode, trait["name"])) trait["hmac"] = (Maybe.apply(hmac) .to_arguments(trait.pop("dataset_fullname"), trait["name"])) |