You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This produces an interesting pair of problems for the linker.
Since we have the qoi arg the pipeline the linker will look for a qoi upstream node to subscribe to. This node might not exist, or worse we may want to use this on multiple upstream nodes. I'm not certain how to handle this properly currently. One approach would be to modify the namespace dict before adding the tomography nodes. This would allow us to make a temporary qoi node which is the same as an existing node.
Sine we may use the tomo pipeline chunk multiple times we will need to modify the linker to make unique names for all the output names. This way we can keep them in the namespace without clashing.
defabs_chunk(img):
abs=img.map(np.sum)
returnlocals()
deftomo_chunk(qoi, ...):
tomo=qoi.map(...)
returnlocals()
defmutating_linker(func, namespace, input_lut, output_lut):
# takes valid node name to qoi (abs -> qoi)fork, vininput_lut.items():
namespace[k] =namespace[v]
loc=func(**namespace)
# takes output name and changes it (tomo -> abs_tomo)fork, vinoutput_lut.items():
loc[v] =loc.pop(k)
namespace.update(loc)
# Note that this means that input_lut keys can't be a valid output node name# (qoi -> N/A)fork, vininput_lut.items():
namespace.pop(k)
The text was updated successfully, but these errors were encountered:
xref: xpdAcq/xpdtools#62 (comment)
This produces an interesting pair of problems for the linker.
Since we have the qoi arg the pipeline the linker will look for a qoi upstream node to subscribe to. This node might not exist, or worse we may want to use this on multiple upstream nodes. I'm not certain how to handle this properly currently. One approach would be to modify the namespace dict before adding the tomography nodes. This would allow us to make a temporary qoi node which is the same as an existing node.
Sine we may use the tomo pipeline chunk multiple times we will need to modify the linker to make unique names for all the output names. This way we can keep them in the namespace without clashing.
The text was updated successfully, but these errors were encountered: