fyda.DataBank.deposit

DataBank.deposit(filepath, shortcut=None, reader=None, error='raise')[source]

Store a shortcut and reader reference for the given file name.

Parameters:
  • filepath (str) – Name of the file to store.
  • shortcut (str) – Shortcut to deposit.
  • reader (callable, (optional)) – If provided, maps shortcut to this callable whenever the data is called to open. If none is provided, a reader will be automatically assigned.
  • error (str) – If set to ‘ignore’, ignores any errors when picking a file reader.