identify_data#

jdaviz.core.data_formats.identify_data(filename, current=None)[source]#

Identify the data format and application configuration from a filename.

Parameters:
filenamestr or pathlib.Path or file-like object

The filename of the loaded data

currentstr or None

The currently loading application configuration, if any

Returns:
valid_formatstr

A valid file format

configstr

The recommended application configuration