Skip to content

Be aware of the pitfalls with creating waves on the fly with {} #50

@t-b

Description

@t-b
Function Callit()
    variable var

	GetData({var})
End

Function GetData(WAVE data)

End

creates a SP wave. The WAVE type of the argument in GetData determines the created wave type. So use WAVE/D if you always need DP waves. Or introduce WaveDouble, see AllenInstitute/MIES#2697. Doing WAVE/T forces a text wave as parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions