ImperialCollegeLondon/PyProBE

Add fuzzy string matching to pyprobe.result.Result.get() method

開放

#304 建立於 2025年7月1日

 (1 則留言) (0 個反應) (0 位負責人)Python (19 個分叉)auto 404
featurefrontendgood first issue

倉庫指標

星標
 (51 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

The pyprobe.result.Result.get() method should support fuzzy string matching to enhance usability when querying for results with approximate or similar string keys. This feature will help users retrieve values even when there are minor typos or differences in the key strings, making the method more robust and user-friendly. Consider using a library like fuzzywuzzy or Python's difflib for the implementation. Include tests and documentation for the new fuzzy matching capability.

Example. result.get("Voltage (V)") should return a "did you mean "Voltage [V]".

貢獻者指南