Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the type of feature_id is float there throw an error: "ValueError: invalid literal for int() with base 10:" Because you get a ValueError if you pass a string representation of a float into int, or a string representation of anything but an integer (including empty string). If you do want to pass a string representation of a float to an int, as it points out above, you can convert to a float first, then to an integer. Ref: https://stackoverflow.com/questions/1841565/valueerror-invalid-literal-for-int-with-base-10 Signed-off-by: clc <clc.test.com> Co-authored-by: Xavier Dupré <xadupre@users.noreply.github.com> Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
- Loading branch information