afmformats.formats.fmt_tab

Functions

  • load_tab(): Loads tab-separated-value files as exported by afmformats

afmformats.formats.fmt_tab.load_tab(path, callback=None, meta_override=None)[source]

Loads tab-separated-value files as exported by afmformats

This is a simple tab-separated values files. The metadata may be present at the beginning of the file, commented out, as a json dump in a “BEGIN METADATA” - “END METADATA” block. The column data is listed below as a simple table.

Parameters
  • path (str or pathlib.Path or io.TextIOBase) – path to a .tab file

  • callback (callable) – function for progress tracking; must accept a float in [0, 1] as an argument.

  • meta_override (dict) – if specified, contains key-value pairs of metadata that are used when loading the files (see afmformats.meta.META_FIELDS)