parameters: (self, Ei)
return_statement: return Chop.flux_calc(np.array(Ei), self.name, self.theta_m * np.pi / 180.)
docstring: Estimate white beam flux from TGP's model of the moderators (ISIS TS1 only)
docstring_summary: Estimate white beam flux from TGP's model of the moderators (ISIS TS1 only)
docstring_tokens: Estimate white beam flux from TGP s model of the moderators ( ISIS TS1 only )
function: def getAnalyticFlux(self, Ei):
          """ Estimate white beam flux from TGP's model of the moderators (ISIS TS1 only) """
          if all([self.name != modtype for modtype in ['AP', 'CH4', 'H2']]):
              raise AttributeError('No analytical model for moderator %s' % (self.name))
          return Chop.flux_calc(np.array(Ei), self.name, self.theta_m * np.pi / 180.)
function_tokens: def getAnalyticFlux ( self , Ei ) : if all ( [ self . name != modtype for modtype in [ 'AP' , 'CH4' , 'H2' ] ] ) : raise AttributeError ( 'No analytical model for moderator %s' % ( self . name ) ) return Chop . flux_calc ( np . array ( Ei ) , self . name , self . theta_m * np . pi / 180. )