I've got a list of numbers that I want to apply to:
(1) FieldDataQuery (to pull different species by ID one at a time) and to
(2) FieldDataQuery as the run_name_info (so I can tell which folder holds which species by ID),
(3) PARC for one future climate model (to make a folder matching the model and the ID) and
(4) PARC for another future climate model (to identify the model and the ID)
In PythonSource I've got:
rangestring = range(1,381)
S2 = (','.join(map("'[ID]' == '{0}'".format, rangestring))).split(",")
outputrecent = ("".join(",".join(map("Recent_{0}".format,rangestring)))).split(",")
output26 = ("".join(",".join(map("BCrcp26_{0}".format,rangestring)))).split(",")
output85 = ("".join(",".join(map("BCrcp85_{0}".format,rangestring)))).split(",")
zip_outputs = zip(outputrecent,output26,output85)
In case anyone out there can help - I think I want to use PythonSource to make a tuple ("zip_outputs" but should add in S2 as well) and then some other widget to tell it to use the first element of each tuple for IDs, the second for the first run_name_info... and so on.
I need to not result in nested looping when I want to work through the one list of the four lists once.
I'm looking at the Control Flow choices and feel like I'm close with Map or Filter but can't quite work out which will let me type [x[0] for x in zip_outputs]... to pick the correct element of each tuple as it works through.
Thanks,
Michelle