def get_azimuthal(self, id=None, **kwargs): """ The azimuthal angle (angle between plane and detector). This is fixed for all pixels at 0.0 radians. """ # fix the units units = __get_units__(kwargs, "radian") if units!="radian": raise RuntimeError,"Do not understand units \"%s\"" % units return (0.,0.)
def get_azimuthal(self, id=None, **kwargs): """ The azimuthal angle (angle between plane and detector). This is fixed for all pixels at 0.0 radians. """ # fix the units units = __get_units__(kwargs, "radian") if units != "radian": raise RuntimeError, "Do not understand units \"%s\"" % units return (0., 0.)
def get_polar(self, id=None, **kwargs): """ The polar angle (angle between incident beam and detector). This is fixed for all pixels at 0.785+/-0.005 radians. """ # fix the units units = __get_units__(kwargs, "radian") if units != "radian": raise RuntimeError, "Do not understand units \"%s\"" % units return (0.785, 0.005)
def get_polar(self, id=None, **kwargs): """ The polar angle (angle between incident beam and detector). This is fixed for all pixels at 0.785+/-0.005 radians. """ # fix the units units = __get_units__(kwargs, "radian") if units!="radian": raise RuntimeError,"Do not understand units \"%s\"" % units return (0.785, 0.005)
def get_secondary(self, id=None, **kwargs): """ The secondary flight path (neutronic distance from sample to detector). This is fixed for all pixels to 1.0+/-0.05 meters. """ # fix the units units = __get_units__(kwargs, "meter") if units != "meter": raise RuntimeError, "Do not understand units \"%s\"" % units # calculate the position # return the result return self.__L1
def get_secondary(self, id=None, **kwargs): """ The secondary flight path (neutronic distance from sample to detector). This is fixed for all pixels to 1.0+/-0.05 meters. """ # fix the units units = __get_units__(kwargs, "meter") if units!="meter": raise RuntimeError,"Do not understand units \"%s\"" % units # calculate the position # return the result return self.__L1
def set_azimuthal(self, angles, id=None, **kwargs): units = __get_units__(kwargs, "radian")
def set_polar(self, angles, id=None, **kwargs): units = __get_units__(kwargs, "radian")
def set_polar(self, angles, id=None, **kwargs): units = __get_units__(kwargs,"radian")