HXLStandard / libhxl-python

Python support library for the Humanitarian Exchange Language (HXL) data standard.
The Unlicense
40 stars 10 forks source link

Improve replace filter #326

Closed davidmegginson closed 1 year ago

davidmegginson commented 1 year ago
  1. Stop after first successful replacement (optionally continue?)
  2. Optionally allow a default value if all replacements fail
davidmegginson commented 1 year ago

The filter is now optimised to recompile matching indices, and will stop after the first successful match for each cell. These changes should speed it up considerably for long maps.

davidmegginson commented 1 year ago

This change also makes it possible to add a default value to maps, using a regex at the end