20bb84dcdb740a73c8644d8abe70c5b20e64078f,deeplabcut/create_project/add.py,,add_new_videos,#Any#Any#Any#Any#,11

Before Change


    // adds the video list to the config.yaml file
    for idx,video in enumerate(videos):
        try:
           video_path = os.path.realpath(video)
        except:
           video_path = os.readlink(video)

        vcap = cv2.VideoCapture(video_path)

After Change


    for idx,video in enumerate(videos):
        try:
// For windows os.path.realpath does not work and does not link to the real video. 
           video_path = str(Path.resolve(Path(video)))
//           video_path = os.path.realpath(video)
        except:
           video_path = os.readlink(video)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 20bb84dcdb740a73c8644d8abe70c5b20e64078f
Time: 2019-05-03
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/add.py
Class Name:
Method Name: add_new_videos


Project Name: arnomoonens/yarll
Commit Name: be02add9cc983f8664d27c42594b953dcf5ff39f
Time: 2019-06-21
Author: arno.moonens@gmail.com
File Name: yarll/main.py
Class Name:
Method Name: run_experiment


Project Name: AlexEMG/DeepLabCut
Commit Name: 3b10ea5bbb4cdba6ee6c0cc2481f4058f71fe5da
Time: 2019-03-31
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project