Repository navigation
What's new in v3.4.0
New features
- Area and layer selection on vertical profiles (#1103).
Dfsu2DV.read(area=...),sel(area=...),sel(layers="top")andfind_index(area=...)now work on a vertical profile, andsel(z=...)works on a vertical column. All of these used to raise, because profiles and columns inherited methods from the 3D mesh that only apply to a horizontal mesh. - Spectral geometries know their own file type (#1076). A
GeometryFMAreaSpectrumorGeometryFMLineSpectrumbuilt in code no longer needsdfsu_type=, which meant importingDfsuFileTypefrom mikecore. Without it, printing the geometry or writing it to dfsu failed withAttributeError.
Breaking changes
- A vertical column (
GeometryFMVerticalColumn, whatsel(x=..., y=...)returns on a 3D dfsu) is no longer aGeometryFM3D(#1103). It inherited the methods of a horizontal mesh, which do not apply to one water column, andsel(z=...), the selection that does apply, raised. As a result:isinstance(geom, GeometryFM3D)isFalsefor a column; check forGeometryFMVerticalColumninstead.geometry2d,to_2d_geometry,boundary_polygons,boundary_polylines,containsandto_meshare gone from columns. For the column's position useelement_coordinates.sel(x=..., y=...)andsel(area=...)on a column raiseValueError.iselon a column that keeps one layer withkeepdims=Truereturns a one-layer column instead of aGeometryFM2D.iselwith elements from several columns now returns aGeometryFM3D; it could previously return a column by mistake.
Documentation
The vertical profile notebook is now a docs example that runs on every docs build. The user guide no longer ends pages with file clean-up steps (#1072).
Full changelog: v3.3.1...v3.4.0