afids / afids-validator

Validator for the anatomical fiducial placement protocol
https://validator.afids.io
GNU General Public License v3.0
2 stars 4 forks source link

Modified parsed_version to keep as string instead of float #30

Closed greydongilmore closed 4 years ago

greydongilmore commented 5 years ago

The current parsed_version line does not work on versions with trailing zeros... etc 4.10. When converting to float, the trailing zero is dropped and the version becomes 4.1, which is too low by definition.

This commit modified the parsing to parse out numbers from the string but keep them as a string. Now the version numbers are evaludated as strings (i.e. '4.10').