Skip to content

Commit

Permalink
Issue 108 (#109)
Browse files Browse the repository at this point in the history
* fixes #108, possibly

* fixes #108

Co-authored-by: Oleg Smirnov <[email protected]>
Co-authored-by: Benna Hugo <[email protected]>
  • Loading branch information
3 people authored Jun 8, 2022
1 parent 80e46f6 commit 39cfbc0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Pyxides/im/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
velocity = False
no_weight_fov = False

# import wsclean
# import lwimager
# import casa
# import moresane
from . import wsclean
from . import lwimager
from . import casa
from . import moresane

def make_image (*args,**kw):
imager = kw.get('imager', IMAGER).lower();
Expand Down
2 changes: 1 addition & 1 deletion Pyxides/im/casa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import im
import subprocess
import tempfile
import argo
from . import argo
import pyrap.images as Images

# register ourselves with Pyxis and define the superglobals
Expand Down
2 changes: 1 addition & 1 deletion Pyxides/im/lwimager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import subprocess
from astropy.io import fits as pyfits
from im import argo
from . import argo

import ms
import std
Expand Down
2 changes: 1 addition & 1 deletion Pyxides/im/moresane.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import numpy
import math
import argo
from . import argo
import im
# Standard options
gain = 0.1
Expand Down
5 changes: 3 additions & 2 deletions Pyxides/imager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from Pyxis.ModSupport import *

from Pyxides import im
register_pyxis_module(superglobals="MS LSM DESTDIR");
v.define("LSM","lsm.lsm.html","""current local sky model""");

Expand Down Expand Up @@ -89,7 +89,8 @@ def make_image (msname="$MS",column="$COLUMN",imager='$IMAGER',
makedir('$DESTDIR')
if imager in ['lwimager','wsclean']:
__import__('im.%s'%imager.lower());
call_imager = eval( 'im.%s.make_image'%(imager.lower()) )
call_imager = getattr(getattr(im, imager.lower()), "make_image")
# call_imager = eval( 'im.%s.make_image'%(imager.lower()) )
else:

abort('Uknown imager: $imager')
Expand Down

0 comments on commit 39cfbc0

Please sign in to comment.