Skip to content

Commit 350894e

Browse files
committed
add unit addition to template before early return in _update_template_units
1 parent 05ac4b8 commit 350894e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mdio/converters/segy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ def _update_template_units(template: AbstractDatasetTemplate, unit: LengthUnitMo
321321

322322
# If a spatial unit is not provided, we return as is
323323
if unit is None:
324+
template.add_units(new_units)
324325
return template
325326

326327
# Dynamically add units based on the spatial coordinate unit

0 commit comments

Comments
 (0)