56 - | except (ImportError, ModuleNotFoundError): |
57 - | |
58 - | logging.debug("Import casa6 errors. Trying casa5...") |
59 - | from __main__ import default |
60 - | from taskinit import tbtool, mstool, iatool |
61 - | from casa_stack_manip import stack_find, find_casa |
62 - | |
63 - | try: |
64 - | from mpi4casa.MPIEnvironment import MPIEnvironment |
65 - | _importmpi = True |
66 - | if not MPIEnvironment.is_mpi_enabled: |
67 - | __bypass_parallel_processing = 1 |
68 - | except ImportError: |
69 - | print("MPIEnvironment not Enabled") |
36 + | try: |
37 + | from casampi.MPIEnvironment import MPIEnvironment |
38 + | _importmpi = True |
39 + | if not MPIEnvironment.is_mpi_enabled: |
40 + | __bypass_parallel_processing = 1 |
41 + | except ImportError: |
42 + | print("MPIEnvironment not Enabled") |
77 45 | |
78 46 | _casa6tools = set([ |
79 47 | "agentflagger", "atcafiller", "atmosphere", "calanalysis", "calibrater", "coercetype", "componentlist", "config", "constants", "coordsys", "ctuser", "functional", "image", |
80 48 | "imagemetadata", "imagepol", "imager", "iterbotsink", "logsink", "measures", "miriadfiller", "ms", "msmetadata", "mstransformer", "platform", "quanta", "regionmanager", "sakura", |
81 49 | "sdm", "simulator", "singledishms", "spectralline", "synthesisdeconvolver", "synthesisimager", "synthesisimstore", "synthesisnormalizer", "synthesisutils", "table", "typecheck", "utils", |
82 50 | "vlafiller", "vpmanager"]) |
83 51 | |
84 52 | |
85 53 | _casa6tasks = set([ |
86 54 | "accor", "accum", "applycal", "asdmsummary", "bandpass", "blcal", "calstat", "clearcal", "clearstat", "concat", "conjugatevis", "cvel", "cvel2", |