create_data_hash#
- jdaviz.utils.create_data_hash(input_data)[source]#
Create and return a deterministic hash for the provided data. The function supports various input types including numpy arrays, astropy Quantities, strings, and specutils Spectrum objects. If the input is
Noneor of an unsupported type (e.g., a plain number), the function returnsNone.- Parameters:
- input_dataarray-like, str,
astropy.units.Quantity,specutils.Spectrum1D, or None The data to hash. If a list or tuple, it may contain arrays or strings. If
astropy.units.Quantity, the unit is included in the hash. IfNone, the function returnsNone.
- input_dataarray-like, str,
- Returns: