Repository navigation
Releases: aschet/x3pio
Releases · aschet/x3pio
Release list
x3pio 2.0.0
This release simplifies the reading API and reduces the cost of reading. It contains breaking changes.
Breaking changes
- Removed
openand the typed reads (Surface.openand equivalents).x3pio.read(path_or_stream)replaces them and returns aSurface,ProfileorPointCloud.X3pFile.loads(bytes)reads from memory. X3pFormatErrornow derives fromValueError.- Removed
DATA_TYPES,DataTypeInfo,get_data_type,encode_raw,decode_raw,validate_incrementandvalidate_rotationfrom the top-level API.suggest_scalenow takes aDataType. Layerstores its arrays asfloat64. Arrays of other dtypes are converted on assignment.- Removed
Layer.iter_pointsandPoint. UseLayer.points(), orLayer.points()[layer.valid]for an(N, 3)array of the measured points. from_stackedis now private. Usefrom_array,from_layersorfrom_points.- An unknown
Revisiontext now raisesX3pFormatError. inforequires a path or a seekable stream.FileInfo.extensionsis now a tuple ofExtensionFile(vendor ID, path, size) instead of the extension contents.
Additions and changes
- Added
X3pFile.extensions_fit(revision), which reports whether the vendor extensions can be stored in the given revision. readneeds less memory when it reads from a path.infono longer reads the coordinates or the vendor files.storageis validated on assignment.X3pFile,LayerandFileInfohave one-line reprs.- Consolidated the examples into
write,read,modifyandplot.