Inputs to modules that use more than one input must either all be sources, or all be steps.
Steps must be either "initial" or not initial. Suggest adding a step type called mixed, and coding around that.
for step in steps:
if step['initial'] == True:
bix = [sourcenames.index(si) for si in step['inputs']]
d = data[bix,:,:,:]
else:
d = np.array([results[si] for si in step['inputs']])
if d.shape[0] == 1:
d = d.reshape(d.shape[1], nyr, npx)
print step['name'], d.shape,
results[step['name']] = step['function'](d, missing_out, step['params'])
if step.get('output', False):
OUTPUT[step['name']][:, :, istart:iend] = results[step['name']]
Created by: rbraswell
Inputs to modules that use more than one input must either all be sources, or all be steps.
Steps must be either "initial" or not initial. Suggest adding a step type called mixed, and coding around that.