makeArray with +99 ports

Issue #2 resolved
Ville Rantanen created an issue

Replicate from our internal ticket system

makeArray function is missing the structure, where >99 ports are delegated to multiple ArrayConstructors, which are then joined by ArrayCombiner. If ArrayCombiner ports are not enough, more combiners are called..

failing example:

import org.anduril.runtime._
import anduril.tools._
import anduril.builtin._

object manyinst {
  val file=Randomizer(columns=4,rows=4)
  val joins=Record[QuickBash.gettype]("joins")
  for ( i <- 1 to 500 ) {
    joins(i)=QuickBash(in=file, script="cat \"$in\" > $out")
  }
  val joinArray=rec2Array(joins,"out")
  val joined=Array2Folder(joinArray)
}

The resulting array contains only the first 99 elements.

Comments (2)

  1. Log in to comment