cc410f68b6c1d1417322ec02e22ea7713ca0bc48,trackpy/locate_functions/brightfield_ring.py,,locate_brightfield_ring,#,18

Before Change


        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


        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: nilmtk/nilmtk
Commit Name: ed2aaf1d1c559802350f4b554b0bb567d0dec5ab
Time: 2014-11-17
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: load


Project Name: nilmtk/nilmtk
Commit Name: 63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/totalenergy.py
Class Name:
Method Name: get_total_energy