cc410f68b6c1d1417322ec02e22ea7713ca0bc48,trackpy/locate_functions/brightfield_ring.py,,locate_brightfield_ring,#,18
Before Change
// Make a copy of old coords and overwrite with result
// In this way any extra columns from previous_coords are preserved
new_coords = coords.copy()
for column in result.index.tolist():
// make a new column if necessary, otherwise overwrite
new_coords[column] = result.get(column)
refined[i] = new_coords
columns = np.unique(np.concatenate((pos_columns, ["r"], coords_df.columns)))
if len(refined) == 0:
After Change
else:
refined = pool.map(_get_refined_coords, [(coords, pos_columns, image, radius, kwargs, has_user_input) for _, coords in coords_df.iterrows()])
refined = [ref for ref in refined if ref is not None]
columns = np.unique(np.concatenate((pos_columns, ["r"], coords_df.columns)))
if len(refined) == 0:
warnings.warn("No particles found in the image after refinement.")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: soft-matter/trackpy
Commit Name: cc410f68b6c1d1417322ec02e22ea7713ca0bc48
Time: 2020-03-18
Author: ruben@lighthacking.nl
File Name: trackpy/locate_functions/brightfield_ring.py
Class Name:
Method Name: locate_brightfield_ring
Project Name: lmcinnes/pynndescent
Commit Name: c1c31db36facdf8d557f4dcc69866ac86814b83f
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: _init_search_graph
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a89404a84393211c7b370077fafe536a8f44762
Time: 2018-03-02
Author: max.lapan@gmail.com
File Name: ch17/lib/common.py
Class Name:
Method Name: iterate_batches
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 722531f6e47ead8b5a5d2e4427f5bfef319e483b
Time: 2019-03-22
Author: jan@motl.us
File Name: category_encoders/basen.py
Class Name: BaseNEncoder
Method Name: basen_to_integer