ó
-™xTc           @   sF   d  d l  m Z d  d l m Z d d d d d d „ Z d d Z d S(   iÿÿÿÿ(   t   division(   t   adptbxc         C   sÏ   | | | g j  d  ƒ d k s$ t ‚ | d  k	 rB t j | ƒ } n  | d  k	 r¶ |  | g j  d  ƒ d k so t ‚ |  d k s� t ‚ d d | } | | | d |  |  } d | } n | d  k rË d } n  | S(   Ni   i    i   g       @i
   id   (   t   countt   Nonet   AssertionErrorR   t   u_as_b(   t   d_mint   grid_resolution_factort   quality_factort   u_baset   b_baset   sigmat   log_quality_factor(    (    sO   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/misc.pyt   quality_factor_from_any   s    $!	s8   Programming problem: Calling this function is expensive.s6    Please assign the result to an intermediate variable.N(   t
   __future__R    t   cctbxR   R   R   t   expensive_function_call_message(    (    (    sO   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/cctbx/xray/structure_factors/misc.pyt   <module>   s   