radiocosmology / caput

Cluster Astronomical Python Utilities
GNU General Public License v2.0
12 stars 21 forks source link

Fix inadvertent `StopIteration` in MPIArray which triggers the pipeline to end #277

Closed ljgray closed 2 months ago

ljgray commented 2 months ago

The pipeline runner is built as a generator and uses StopIteration to signal that it's done. This PR fixes a bug where a ufunc could be called with only numpy array inputs but out=<mpiarray.MPIArray>.