ImperialCollegeLondon/PyProBE

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

Aperta

#304 aperta il 1 lug 2025

 (1 commento) (0 reazioni) (0 assegnatari)Python (19 fork)auto 404
featurefrontendgood first issue

Metriche repository

Star
 (51 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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]".

Guida contributor