ilastik / lazyflow

lazy parallel ondemand zero copy numpy array data flows with caching and dirty propagation
Other
77 stars 59 forks source link

Do not format output filename on bad format string #276

Closed emilmelnikov closed 5 years ago

emilmelnikov commented 6 years ago

format_known_keys() raises ValueError if the format string is malformed: {spam} {eggs is malformed because the second field is not closed. This can happen if a format string is coming from the user: see https://github.com/ilastik/ilastik/issues/1761.

This commit allows non-strict behaviour of format_known_keys(), which is disabled by default, and enables it in places that cause the issue above.