Commit d1531bda authored by Ambra Di Piano's avatar Ambra Di Piano
Browse files

fix typos

parent da49f2d8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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()
@@ -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()
@@ -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()
+1 −1
Original line number Diff line number Diff line
@@ -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']