Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DynSpecMS/ClassDynSpecMS.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ def InitFromCatalog(self):
print("Selected %i target [out of the %i in the original list]"%(self.NDirSelected,CGC.NOrig), file=log)
if self.NDirSelected==0:
print(ModColor.Str(" Have found no sources - returning"), file=log)
self.killWorkers()
return

NOff=self.NOff
Expand Down
8 changes: 0 additions & 8 deletions DynSpecMS/ClassGiveCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,6 @@ def giveCat(self,SubSet=None):
self.PosArray=np.asarray(l,dtype=dtype)
self.DoProperMotionCorr=True

elif FileCoords is not None:
tbl = ascii.read(FileCoords)
ra = coord.Angle(tbl["ra"], unit=u.hour)
dec = coord.Angle(tbl["dec"], unit=u.degree)
self.PosArray=np.zeros((len(tbl),),dtype=dtype)
self.PosArray["ra"]=ra.degree
self.PosArray["dec"]=dec.degree
self.PosArray["Name"][:]=tbl["Name"][:]
else:

#FileCoords="Transient_LOTTS.csv"
Expand Down
14 changes: 6 additions & 8 deletions DynSpecMS/logo.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from __future__ import print_function

def PrintLogo(version):
print(""" ______ _____ ___ ___ _____ """)
print(""" | _ \ / ___| | \/ |/ ___| """)
print(""" | | | |_ _ _ __ \ `--. _ __ ___ ___| . . |\ `--. """)
print(""" | | | | | | | '_ \ `--. \ '_ \ / _ \/ __| |\/| | `--. \ """)
print(""" | |/ /| |_| | | | /\__/ / |_) | __/ (__| | | |/\__/ / """)
print(""" |___/ \__, |_| |_\____/| .__/ \___|\___\_| |_/\____/ """)
print(""" __/ | | | """)
print(""" |___/ |_| """)
print(""" _____ _____ __ __ _____ """)
print(""" | __ \|_ _| \/ |/ ____|""")
print(""" | |__) | | | | \ / | (___ """)
print(""" | _ / | | | |\/| |\___ \ """)
print(""" | | \ \ _| |_| | | |____) |""")
print(""" |_| \_\_____|_| |_|_____/ """)
print(" version",version)
6 changes: 0 additions & 6 deletions DynSpecMS/scripts/ms2dynspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,6 @@ def ms2dynspec(args=None, messages=[]):
if ra0<0.: ra0+=2.*np.pi
field_ras.append(ra0)
field_decs.append(dec0)
tField.close()

# L_radec=list(set(L_radec))
# if len(L_radec)>1: stop
# ra0,dec0=L_radec[0]

field_ras=np.array(field_ras)
field_decs=np.array(field_decs)
ra_different=np.any(np.abs(field_ras-np.mean(field_ras))>args.tolerance*np.pi/(180*3600))
Expand Down