• This function retrieves the type of the data file inputted by the user.

    Returns string

    The extension of the data file.

    Remarks

    This function examines the files selected by the user through the file input. It checks each file's extension, verifying that it is valid (.trc, .json, .solu, or .csv). It then asserts that there are not multiple files of the same extension and that there is at least one .trc or .json file. If any of these checks fail, it displays an error notification and throws an error. If all checks pass, it returns the extension of the first file.

    Throws

    This function will throw an error if:

    • Any file has an invalid extension.
    • There are multiple files with the same extension.
    • There is no .trc or .json file.
    • There are both .trc and .json files.

Generated using TypeDoc