rodrigob/circulant_matrix_tracker — pull request #1 by lessthanoptimal (2013-11-10 21:40:36+00:00)
Title: Path to some files were "double counted" causing problems

Problem with relative paths using Python 2.7.3. Basically the path was added twice. This causes a problem when a relative path is used. Example of error message below:

Traceback (most recent call last):
File "/opt/pycharm/pycharm-2.7.1/helpers/pydev/pydevd.py", line 1472, in
debugger.run(setup['file'], None, None)
File "/opt/pycharm/pycharm-2.7.1/helpers/pydev/pydevd.py", line 1116, in run
pydev_imports.execfile(file, globals, locals) #execute the script
File "/home/pja/projects/ValidationBoof/thirdparty/circulant/python/circulant_matrix_tracker.py", line 572, in
main()
File "/home/pja/projects/ValidationBoof/thirdparty/circulant/python/circulant_matrix_tracker.py", line 564, in main
track(options.video_path)
File "/home/pja/projects/ValidationBoof/thirdparty/circulant/python/circulant_matrix_tracker.py", line 410, in track
info = load_video_info(input_video_path)
File "/home/pja/projects/ValidationBoof/thirdparty/circulant/python/circulant_matrix_tracker.py", line 117, in load_video_info
frames = pylab.loadtxt(first_file_path, delimiter=",", dtype=int)
File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 690, in loadtxt
fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: '../../../data/track_rect/MILTrack/cliffbar/../../../data/track_rect/MILTrack/cliffbar/cliffbar_frames.txt'