|
1 | | -'''Module to import Nipype Pipeline engine and override some Classes. |
2 | | -See https://fcp-indi.github.io/docs/developer/nodes |
3 | | -for C-PAC-specific documentation. |
4 | | -See https://nipype.readthedocs.io/en/latest/api/generated/nipype.pipeline.engine.html |
5 | | -for Nipype's documentation. |
6 | | -
|
7 | | -Copyright (C) 2022 C-PAC Developers |
| 1 | +# Copyright (C) 2022 C-PAC Developers |
8 | 2 |
|
9 | | -This file is part of C-PAC. |
| 3 | +# This file is part of C-PAC. |
10 | 4 |
|
11 | | -C-PAC is free software: you can redistribute it and/or modify it under |
12 | | -the terms of the GNU Lesser General Public License as published by the |
13 | | -Free Software Foundation, either version 3 of the License, or (at your |
14 | | -option) any later version. |
| 5 | +# C-PAC is free software: you can redistribute it and/or modify it under |
| 6 | +# the terms of the GNU Lesser General Public License as published by the |
| 7 | +# Free Software Foundation, either version 3 of the License, or (at your |
| 8 | +# option) any later version. |
15 | 9 |
|
16 | | -C-PAC is distributed in the hope that it will be useful, but WITHOUT |
17 | | -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
18 | | -FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
19 | | -License for more details. |
| 10 | +# C-PAC is distributed in the hope that it will be useful, but WITHOUT |
| 11 | +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 13 | +# License for more details. |
20 | 14 |
|
21 | | -You should have received a copy of the GNU Lesser General Public |
22 | | -License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.''' # noqa: E501 |
| 15 | +# You should have received a copy of the GNU Lesser General Public |
| 16 | +# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>. |
| 17 | +'''Module to import Nipype Pipeline engine and override some Classes. |
| 18 | +See https://fcp-indi.github.io/docs/developer/nodes |
| 19 | +for C-PAC-specific documentation. |
| 20 | +See https://nipype.readthedocs.io/en/latest/api/generated/nipype.pipeline.engine.html |
| 21 | +for Nipype's documentation.''' # noqa: E501 # pylint: disable=line-too-long |
23 | 22 | from nipype.pipeline import engine as pe |
24 | 23 | # import everything in nipype.pipeline.engine.__all__ |
25 | 24 | from nipype.pipeline.engine import * # noqa: F401,F403 |
26 | 25 | # import our DEFAULT_MEM_GB and override Node, MapNode |
27 | | -from .engine import DEFAULT_MEM_GB, get_data_size, Node, MapNode, \ |
28 | | - UNDEFINED_SIZE, Workflow |
| 26 | +from .engine import DEFAULT_MEM_GB, export_graph, get_data_size, Node, \ |
| 27 | + MapNode, UNDEFINED_SIZE, Workflow |
29 | 28 |
|
30 | 29 | __all__ = [ |
31 | 30 | interface for interface in dir(pe) if not interface.startswith('_') |
32 | | -] + ['DEFAULT_MEM_GB', 'get_data_size', 'Node', 'MapNode', 'UNDEFINED_SIZE', |
33 | | - 'Workflow'] |
| 31 | +] + ['DEFAULT_MEM_GB', 'export_graph', 'get_data_size', 'Node', 'MapNode', |
| 32 | + 'UNDEFINED_SIZE', 'Workflow'] |
34 | 33 |
|
35 | 34 | del pe |
0 commit comments