ef59c0f5b64e5a3e76790855795a6393c5858963,deeplabcut/generate_training_dataset/multiple_individuals_labeling_toolbox.py,MainFrame,browseDir,#MainFrame#Any#,611

Before Change


            self.dataFrame.sort_index(inplace=True)
            self.prev.Enable(True)
            // Finds the first empty row in the dataframe and sets the iteration to that index
            for idx, j in enumerate(self.dataFrame.index):
                values = self.dataFrame.loc[j, :].values
                if np.prod(np.isnan(values)) == 1:
                    self.iter = idx
                    break
                else:
                    self.iter = idx
        except:
            // Create an empty data frame
            self.dataFrame = MainFrame.create_dataframe(
                self,

After Change



        self.multibodyparts = multianimalbodyparts
        // checks for unique bodyparts
        if len(self.multibodyparts) != len(set(self.multibodyparts)):
            print(
                "Error - bodyparts must have unique labels! Please choose unique bodyparts in config.yaml file and try again. Quitting for now!"
            )
            self.Close(True)

        self.uniquebodyparts = uniquebodyparts
        self.individual_names = individuals

        self.videos = self.cfg["video_sets"].keys()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: ef59c0f5b64e5a3e76790855795a6393c5858963
Time: 2020-05-27
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/generate_training_dataset/multiple_individuals_labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir


Project Name: OpenNMT/OpenNMT-py
Commit Name: 77a09f458cb762db906e8f8c9c87df42e280096d
Time: 2017-08-26
Author: srush@seas.harvard.edu
File Name: onmt/Translator.py
Class Name:
Method Name: make_features


Project Name: OpenNMT/OpenNMT-py
Commit Name: 13bbee615c87c812ddcfff73746cd504222e3fb0
Time: 2017-08-30
Author: nasa4836@gmail.com
File Name: onmt/Models.py
Class Name:
Method Name: make_base_model