From bf37bd289f34fcbaeeb0fe76faa2ad5343ff3331 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Mon, 4 Mar 2024 07:36:52 +1100 Subject: [PATCH] added __all__ attribute to init --- nipype-auto-conv/generate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nipype-auto-conv/generate b/nipype-auto-conv/generate index c75f0c6..22a9b9b 100755 --- a/nipype-auto-conv/generate +++ b/nipype-auto-conv/generate @@ -35,6 +35,7 @@ auto_dir = PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto" if auto_dir.exists(): shutil.rmtree(auto_dir) +all_interfaces = [] for fspath in sorted(SPECS_DIR.glob("**/*.yaml")): with open(fspath) as f: spec = yaml.load(f, Loader=yaml.SafeLoader) @@ -56,6 +57,7 @@ for fspath in sorted(SPECS_DIR.glob("**/*.yaml")): ) converter.generate(PKG_ROOT) auto_init += f"from .{module_name} import {converter.task_name}\n" + all_interfaces.append(converter.task_name) with open(PKG_ROOT / "pydra" / "tasks" / PKG_NAME / "auto" / "_version.py", "w") as f: