fastr.toollist['Divide']
Out[47]:
Tool Divide v0.1 (Divide two numbers)
Inputs | Outputs
---------------------------------------------
left_hand (Number) | result (Number)
right_hand (Number) |
network = fastr.Network(id_='example')
divide_node = network.create_node('Divide', id_='divide_example')
[1] >> divide_node.inputs['left_hand']
[INFO] network:0130 >> Changing fastr.current network to "example"
[WARNING] link:0652 >> Cannot match datatypes <TypeGroup: Number class [Loaded]> and <TypeGroup: Number class [Loaded]> or not preferred datatype is set! Abort linking fastr:///networks/example/nodelist/const_divide_example_left_hand_0/outputs/output to fastr:///networks/example/nodelist/divide_example/inputs/left_hand!
Out[46]:
Link link_0 (network: example):
fastr:///networks/example/nodelist/const_divide_example_left_hand_0/outputs/output ==> fastr:///networks/example/nodelist/divide_example/inputs/left_hand/0
We just released Fastr 1.2.0, this update bring a lot of new features regarding batch processing and inspection of the result of a workflow. There are also many smaller features and bugfixes added. The full changelog can be found at: https://fastr.readthedocs.io/en/stable/static/changelog.html
output.directory
out.some_id_that_does_not_exist_in_this_usecase[0].directory
<outputs>
<output id="report" name="Summary report of the segmentation results" datatype="Directory"
automatic="True" location="{output.directory}/slicesdir" method="path" cardinality="1"/>
</outputs>
<outputs>
<output id="dummy" datatype="FilePrefix"/>
<output id="report" name="Summary report of the segmentation results" datatype="Directory"
automatic="True" location="{output.dummy[0].directory}/slicesdir" method="path" cardinality="1"/>
</outputs>
We just released Fastr 1.2.0, this update bring a lot of new features regarding batch processing and inspection of the result of a workflow. There are also many smaller features and bugfixes added. The full changelog can be found at: https://fastr.readthedocs.io/en/stable/static/changelog.html
{output.directory[0]}
[CRITICAL] executionscript:0102 >> Execution script encountered errors: Traceback (most recent call last):
in execute_job
job.execute()
File "/home/mrphys/marzwi/.conda/envs/fastr/lib/python2.7/site-packages/fastr/execution/job.py", line 739, in execute
result = tool.execute(payload)
File "/home/mrphys/marzwi/.conda/envs/fastr/lib/python2.7/site-packages/fastr/core/tool.py", line 321, in execute
result = self.interface.execute(target, payload)
interface.py", line 404, in execute
self.collect_results(result)
interface.py", line 507, in collect_results
collector.collect_results(self, output, result)
interface.py", line 126, in collect_results
self._collect_results(interface, output, result)
ollector.py", line 127, in _collect_results
output_parts=outputs)
AttributeError: 'tuple' object has no attribute 'directory'
<outputs>
<output id="report" name="Summary report of the segmentation results" datatype="Directory"
automatic="True" location="{output.directory[0]}/slicesdir" method="path" cardinality="1"/>
</outputs>