What — pyunitwizard.forms.api_string.is_unit("[0, 0, 0] nm") returns an array comparison whose truth value raises ValueError during puw.standardize. A vector quantity string must be classified as a quantity, not as a unit.
How — In a configured Pint session, call puw.standardize("[0, 0, 0] nm"). api_string.is_unit compares the vector magnitude to 1 and returns a boolean array. Add a regression test for vector strings and return a scalar bool from unit detection.
Why — Six PharmacophoreMT tests that construct spherical interaction sites fail through shape/sphere.py; this blocks the MolSysSuite policy migration in uibcdf/pharmacophoremt#3.
Record — devguide/pending_bugs/string_vector_unit_detection.md
What —
pyunitwizard.forms.api_string.is_unit("[0, 0, 0] nm")returns an array comparison whose truth value raisesValueErrorduringpuw.standardize. A vector quantity string must be classified as a quantity, not as a unit.How — In a configured Pint session, call
puw.standardize("[0, 0, 0] nm").api_string.is_unitcompares the vector magnitude to1and returns a boolean array. Add a regression test for vector strings and return a scalar bool from unit detection.Why — Six PharmacophoreMT tests that construct spherical interaction sites fail through
shape/sphere.py; this blocks the MolSysSuite policy migration in uibcdf/pharmacophoremt#3.Record —
devguide/pending_bugs/string_vector_unit_detection.md