def show(cls, pulsar_ids=None): from utils import get_pulsaralias_cache, get_pulsarid_cache, get_pulsarname_cache get_pulsaralias_cache(update=True) get_pulsarid_cache(update=True) get_pulsarname_cache(update=True) pulsars = cls.init_pulsars(get_pulsarinfo(pulsar_ids=pulsar_ids)) return pulsars
def add(cls, name, itrf_x, itrf_y, itrf_z, abbrev, code, aliases=[]): from utils import get_pulsaralias_cache, get_pulsarid_cache get_pulsaralias_cache(update=True) get_pulsarid_cache(update=True) response = add_telescope(name=name, \ itrf_x=itrf_x, \ itrf_y=itrf_y, \ itrf_z=itrf_z, \ abbrev=abbrev, \ code=code, \ aliases=aliases) return response
def add(cls, name, aliases=list()): from utils import get_pulsaralias_cache, get_pulsarid_cache get_pulsaralias_cache(update=True) get_pulsarid_cache(update=True) response = add_pulsar(name, aliases) return response