kalekundert / stepwise

Modular, command-line scientific protocols
GNU General Public License v3.0
3 stars 0 forks source link

Allow numbers and spaces in units #44

Open kalekundert opened 3 years ago

kalekundert commented 3 years ago

Currently, when parsing quantities, a unit must contain neither spaces nor numbers. But today I wanted to use the legitimate unit "A260 U/mL" and was unable to. My instinct is to allow anything as a unit, but I want to think about it more carefully (since this loosening this restriction could make it easier to have bugs).

kalekundert commented 3 years ago

Note that this is only an issue for sw serial. sw reaction has separate logic to avoid interpreting concentrations that don't match the quantity regex.