Skip to content

Commit 43d405f

Browse files
author
Tom Brauer
committed
Infer VortexDataType if type is UNDEFINED
In VortexGrid::dataType infer the data type if the current type is undefined.
1 parent 0b192ba commit 43d405f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vortex-api/src/main/java/mil/army/usace/hec/vortex/VortexGrid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public Duration interval() {
315315
}
316316

317317
public VortexDataType dataType() {
318-
return dataType != null ? dataType : inferDataType();
318+
return dataType != null && dataType != VortexDataType.UNDEFINED ? dataType : inferDataType();
319319
}
320320

321321
public float[][][] data3D() {

0 commit comments

Comments
 (0)