File: test_point_format.py

package info (click to toggle)
python-laspy 2.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,928 kB
  • sloc: python: 9,065; makefile: 20
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest

import laspy
from laspy import PointFormat
from tests.test_common import extra_bytes_laz


@pytest.mark.skipif(
    len(laspy.LazBackend.detect_available()) == 0, reason="No Laz Backend installed"
)
def test_extra_dims_not_equal():
    """Test to confirm that two point format with same id but
    not same extra dimension are not equal
    """
    las = laspy.read(extra_bytes_laz)
    i = las.points.point_format.id
    assert las.points.point_format != PointFormat(i)