mapbox / nodata

Because the pixels you can't see are harder than the ones you can.
MIT License
1 stars 3 forks source link

Introducing NodataPoolMan #27

Closed sgillies closed 8 years ago

sgillies commented 8 years ago

This class encapsulates execution of masking algorithms over windows of a source dataset.

I'm learning all kinds of stuff about pytest while writing the tests :)

Also, itertools.izip() and itertools.repeat() combine really nicely here. We're constrained in how we can pass arguments to the algorithms via pool.imap_unordered() and itertools functions give us a handy iterator over arguments.

sgillies commented 8 years ago

Sure, I'm on it.

sgillies commented 8 years ago

This is good to go. The CLI command can be a lightweight wrapper around this.

sgillies commented 8 years ago

Merging @perrygeo @dnomadb.