857cb1f38abfc3f467b6a8e53ae54365e05fcff2,deeplabcut/generate_training_dataset/labeling_toolbox.py,MainFrame,browseDir,#MainFrame#Any#,348

Before Change


        oldBodyParts = self.dataFrame.columns.get_level_values(1)
        _, idx = np.unique(oldBodyParts, return_index=True)
        oldbodyparts2plot =  list(oldBodyParts[np.sort(idx)])
        self.new_bodyparts =  list(set(self.bodyparts) - set(oldbodyparts2plot))

// Checking if user added a new label
        if self.new_bodyparts==[]: // i.e. no new label

After Change


            
// 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:
            a = np.empty((len(self.index),2,))
            a[:] = np.nan
            for bodypart in self.bodyparts:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir


Project Name: nipunsadvilkar/pySBD
Commit Name: 0e364f4b0f70679ca984c0ba5629c569135804a4
Time: 2020-07-26
Author: nipunsadvilkar@gmail.com
File Name: pysbd/segmenter.py
Class Name: Segmenter
Method Name: sentences_with_char_spans


Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product