Coverage for python/lsst/sims/maf/maps/baseMap.py : 51%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Meta class for Maps, to build a registry of maps classes. """ else: if len(modname.split('.')) > 1: modname = '.'.join(modname.split('.')[:-1]) + '.' else: modname = modname + '.' raise Exception('Redefining maps %s! (there are >1 maps with the same name)' %(mapsname))
return cls.registry[mapsname]
for mapsname in sorted(cls.registry): if not doc: print(mapsname) if doc: print('---- ', mapsname, ' ----') print(cls.registry[mapsname].__doc__) maps = cls.registry[mapsname]() print(' added to SlicePoint: ', ','.join(maps.keynames))
""" """
self.keyname = 'newkey'
""" Given slicePoints (dict containing metadata about each slicePoint, including ra/dec), adds additional metadata at each slicepoint and returns updated dict. """ raise NotImplementedError('This must be defined in subclass') |