def observable(path): # # Future spectra location # try: return env.future['spectra'][path] except KeyError: pass # To be deprecated spectra location try: return env.ns('').getobservable(path) except KeyError: raise PartNotFoundError("observable", path)
def observable(path): # # Future spectra location # try: return env.future['spectra'][path] except KeyError: pass # To be deprecated spectra location nspath, name = path.split('/') try: return env.ns(nspath).observables[name] except KeyError: raise PartNotFoundError("observable", path)
def observable(path): try: return env.ns('').getobservable(path) except KeyError: raise PartNotFoundError("observable", path)