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

After Change


        warnings.warn("No particles found in the image before refinement.")
        return coords_df

    if not pool:
        refined = map(_get_refined_coords, [(coords, pos_columns, image, radius, kwargs, has_user_input) for _, coords in coords_df.iterrows()])
    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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: scikit-learn/scikit-learn
Commit Name: c50597926f69286fce5c416d23271a302b2da962
Time: 2020-08-31
Author: devilincarcerated020@yahoo.com
File Name: sklearn/impute/_base.py
Class Name: MissingIndicator
Method Name: _get_missing_features_info


Project Name: luispedro/mahotas
Commit Name: 22fececf3d3d75a6607b889f972663a1473bc37b
Time: 2010-08-24
Author: lpc@cmu.edu
File Name: mahotas/stretch.py
Class Name:
Method Name: stretch