In batch search, spaces are converted to "%20" and yield no match
まだ誰も着手していません。
評価
調査の方向性
Start with the chem.search entry point and run the provided batch-search reproduction for "potassium bicarbonate", then compare it with the working equals search. Trace where the batch query becomes "potassium%20bicarbonate"; done means batch search preserves the intended query value and returns the matching chemical.
索引モデルが issue の本文から書いたものです。
説明
Minimal reproducible example:
import ctxpy
chem = ctxpy.Chemical()
batch search fails, with search value potassium%20bicarbonate
>>> chem.search(by="batch", query=["potassium bicarbonate"])
[{'dtxsid': None, 'dtxcid': None, 'casrn': None, 'smiles': None, 'preferredName': None, 'searchName': None, 'searchValue': 'potassium%20bicarbonate', 'rank': None, 'hasStructureImage': None, 'isMarkush': None, 'searchMsgs': [...], 'suggestions': [...], 'isDuplicate': False}]
exact search works
>>> chem.search(by="equals", query="potassium bicarbonate")
[{'hasStructureImage': 1, 'smiles': '[K+].OC([O-])=O', 'isMarkush': False, 'dtxsid': 'DTXSID0021177', 'dtxcid': 'DTXCID201177', 'casrn': '298-14-6', 'preferredName': 'Potassium bicarbonate', 'searchName': 'Approved Name', 'searchValue': 'Potassium bicarbonate', 'rank': 9}]
- 主要言語
- Python
- スター
- 20
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
USEPA/ctx-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
USEPA/ctx-python#9 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
USEPA/ctx-python#7 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
USEPA/ctx-python#6 · コメント 1 件 ·
USEPA/ctx-python の issue をすべて見る
似ている issue
-
jobs restart --verify: hotlane restart timeout (10s) shorter than its shutdown (~30s) → false exit 1オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
EtanHey/brainlayer#1072 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
_apply_doc_content: a cancel during the shielded image gather still sends the content batchUpdateオープンenhancement
難易度 2/5 1時間未満 初心者へのやさしさ 80/100
khuisman/mcp-gee-sweet#904 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
-
CORE-HIST-005/006 multi-turn history tests send three different messages with the same messageIdオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
a2aproject/a2a-tck#248 ·