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

Before Change


    data = {}

    with laspy.file.File(filename) as las:
        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


    
    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: luispedro/mahotas
Commit Name: 64624fb2b46a228fef1141e1ded84e52acccaf6e
Time: 2015-06-09
Author: luis@luispedro.org
File Name: bin/mahotas-features.py
Class Name:
Method Name: main


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset