Loading rtasci/rtasci/lib/RTAVisualise.py +3 −3 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ def plotSkymap(file, reg='none', col='green', suffix='none', title='', xlabel='R # load region ---! if reg != 'none': try: r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading Loading @@ -97,7 +97,7 @@ def plotResmap(file, reg='none', col='black', suffix='none', title='map redisual ax = plt.subplot(111) # load region ---! if reg != 'none': r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading Loading @@ -352,7 +352,7 @@ def plotTSmap(file, reg='none', col='black', suffix='none', title='TS map', cbar ax = plt.subplot(111) # load region ---! if reg != 'none': r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading rtavis/rtavis/runCatVisibility.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ if cfg['path']['filename'] == None: raise ValueError('No valid FITS file found') elif type(cfg['path']['filename']) == str: if not isfile(join(catalog, cfg['path']['filename'])): raise ValueError(f'Specified template {runid} does not exist in catalog') raise ValueError(f'Specified template does not exist in catalog') runids = [cfg['path']['filename']] else: runids = cfg['path']['filename'] Loading Loading
rtasci/rtasci/lib/RTAVisualise.py +3 −3 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ def plotSkymap(file, reg='none', col='green', suffix='none', title='', xlabel='R # load region ---! if reg != 'none': try: r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading Loading @@ -97,7 +97,7 @@ def plotResmap(file, reg='none', col='black', suffix='none', title='map redisual ax = plt.subplot(111) # load region ---! if reg != 'none': r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading Loading @@ -352,7 +352,7 @@ def plotTSmap(file, reg='none', col='black', suffix='none', title='TS map', cbar ax = plt.subplot(111) # load region ---! if reg != 'none': r = pyregion.open(reg).as_imagecoord(hdr) r = Regions.read(reg).as_imagecoord(hdr) for i in range(len(r)): r[i].attr[1]['color'] = col patch_list, text_list = r.get_mpl_patches_texts() Loading
rtavis/rtavis/runCatVisibility.py +1 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ if cfg['path']['filename'] == None: raise ValueError('No valid FITS file found') elif type(cfg['path']['filename']) == str: if not isfile(join(catalog, cfg['path']['filename'])): raise ValueError(f'Specified template {runid} does not exist in catalog') raise ValueError(f'Specified template does not exist in catalog') runids = [cfg['path']['filename']] else: runids = cfg['path']['filename'] Loading