match

FileSet.match(other, start=None, end=None, max_interval=None, filters=None, other_filters=None)[source]

Find matching files between two filesets

Matching files are files that overlap each in their time coverage.

Parameters
  • other – Another FileSet object.

  • start – Start date either as datetime object or as string (“YYYY-MM-DD hh:mm:ss”). Year, month and day are required. Hours, minutes and seconds are optional.

  • end – End date. Same format as “start”.

  • max_interval – Maximal time interval between two overlapping files. If it is an integer or float, it will be interpreted as seconds.

  • filters – The same filter argument that is allowed for find().

  • other_filters – The same as filter but it will be applied to other.

Yields

A tuple with the FileInfo object from this fileset and a list with matching files from the other fileset.

Examples

TODO: Add example