Permalink
Browse files

fix a minor bug in parsing coords.txt

line no. 106   ==>   re_f = r'([-+]?(\d+(\.\d*))+)'
so that the program will not crash when
line = r'#index = 0, name = images/1022056833_b0bcddb09e_o.jpg, keys = 276, px = 320.0, py = 240.0, focal = -'
for example
  • Loading branch information...
LiuZhuohao committed Mar 18, 2016
1 parent a0f36d4 commit 5ec0152340042c00c80cbff3f544e56eb561e4f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 sfminit/bundletypes.py
View
@@ -103,7 +103,7 @@ def from_file(cls, fname, skip_names=False, skip_colors=False, skip_dims=False):
# regex expressions for float, int, and string
import re
re_d = r'([-+]?\d+)'
re_f = r'([-+]?(\d+(\.\d*))?)'
re_f = r'([-+]?(\d+(\.\d*))+)'
re_s = r'([^\s,]*)'
indices = []

0 comments on commit 5ec0152

Please sign in to comment.