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
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:
a = np.empty((len(self.index),2,))
a[:] = np.nan
for bodypart in self.bodyparts:
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: ray-project/ray
Commit Name: 30c22921d95bb66b6400c52fb19d640cbd0ee3e9
Time: 2020-12-28
Author: simon.mo@hey.com
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: _update_traffic_policies
Project Name: keras-team/keras
Commit Name: 555ca942df407b8c1bf1d48383c60fa1bf09cc1d
Time: 2019-08-28
Author: francois.chollet@gmail.com
File Name: keras/utils/layer_utils.py
Class Name:
Method Name: count_params