
import importlib

__all__ = ["linalg", "single_parameter"]

for m in __all__:
    importlib.import_module("continuate." + m)


import importlib
import os.path as op
from glob import glob

__all__ = [op.basename(f)[:-3]
           for f in glob(op.join(op.dirname(__file__), "*.py"))
           if op.basename(f) != "__init__.py"]

for m in __all__:
    importlib.import_module("continuate." + m)

Change manual listing of submodules to automatic
Change manual listing of submodules to automatic

  
  import importlib
+ import os.path as op
+ from glob import glob
  
- __all__ = ["linalg", "single_parameter"]
+ __all__ = [op.basename(f)[:-3]
+            for f in glob(op.join(op.dirname(__file__), "*.py"))
+            if op.basename(f) != "__init__.py"]
  
  for m in __all__:
      importlib.import_module("continuate." + m)
  
Change manual listing of submodules to automatic
## Code Before:

import importlib

__all__ = ["linalg", "single_parameter"]

for m in __all__:
    importlib.import_module("continuate." + m)

## Instruction:
Change manual listing of submodules to automatic
## Code After:

import importlib
import os.path as op
from glob import glob

__all__ = [op.basename(f)[:-3]
           for f in glob(op.join(op.dirname(__file__), "*.py"))
           if op.basename(f) != "__init__.py"]

for m in __all__:
    importlib.import_module("continuate." + m)
