WrightTools.data.from_COLORS

WrightTools.data.from_COLORS(filepaths, name=None, cols=None, invert_d1=True, ignore=['w3', 'wa', 'dref', 'm0', 'm1', 'm2', 'm3', 'm4', 'm5', 'm6'], parent=None, verbose=True)[source]

Create data object from COLORS file(s).

Parameters
  • filepaths (path-like or list of path-like) – Filepath(s). Can be either a local or remote file (http/ftp). Can be compressed with gz/bz2, decompression based on file name.

  • name (string (optional)) – Unique dataset identifier. If None (default), autogenerated.

  • cols ({'v0', 'v1', 'v2'} (optional)) – Format of COLORS dat file. If None, autorecognized. Default is None.

  • invert_d1 (boolean (optional)) – Toggle inversion of D1 at import time. Default is True.

  • ignore (list of strings (optional)) – Columns to ignore.

  • parent (WrightTools.Collection (optional)) – Collection to place new data object within. Default is None.

  • verbose (bool (optional)) – Toggle talkback. Default is True.

Returns

Data from COLORS.

Return type

WrightTools.Data