7c5daf825bcb84e6f750a6d6fad3a2626c4ea5ec,pyntcloud/io/las.py,,read_las,#,33

Before Change


        data["points"] = pd.DataFrame(las.points["point"])
        data["points"].columns = (x.lower() for x in data["points"].columns)
        // because laspy do something strange with scale
        data["points"].loc[:, ["x", "y", "z"]] *= las.header.scale
        data = convert_location_to_dtype(data, xyz_dtype)
        data = convert_color_to_dtype(data, rgb_dtype)
        data["las_header"] = las.header

After Change


    data: dict
        Elements as pandas DataFrames.
    
    if backend == "pylas":
        data = read_las_with_pylas(filename)
    elif backend == "laspy":
        data = read_las_with_laspy(filename)
    else:
        raise ValueError(f"Unsupported backend. Expected one of ["pylas", "laspy"] but got {backend}")
    data = convert_location_to_dtype(data, xyz_dtype)
    data = convert_color_to_dtype(data, rgb_dtype)
    return data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: daavoo/pyntcloud
Commit Name: 7c5daf825bcb84e6f750a6d6fad3a2626c4ea5ec
Time: 2020-10-06
Author: sebastian.bullinger@iosb.fraunhofer.de
File Name: pyntcloud/io/las.py
Class Name:
Method Name: read_las


Project Name: Picovoice/porcupine
Commit Name: c2cf686f1f8e8a7f81b89010b60911648a0b77b1
Time: 2021-02-26
Author: 42750891+mrrostam@users.noreply.github.com
File Name: binding/python/util.py
Class Name:
Method Name: _pv_linux_machine


Project Name: deeptools/HiCExplorer
Commit Name: c7e151cef5f02f9a7c8e0f1d84ff316ef6ee02d4
Time: 2019-08-16
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicPlotViewpoint.py
Class Name:
Method Name: plot_images