from mcpele1.montecarlo.template import ConfTest, np


class CheckSphericalContainer(ConfTest):
    """Check that the system is within a spherical container
    
    Parameters
    ----------
    radius2 : double
        radius of the spherical container, centered at **0**
    ndim : int
        dimensionality of the space (box dimensionality)
    """
    
    m_radius2: float = 0
    ndim = 0
    
    def __init__(self, radius: float, ndim):
        self.m_radius2 = radius
        self.ndim = ndim
        return None 

    def conf_test(self, trial_coords: np.ndarray) -> bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        #N = len(trial_coords)
        r2: float = 0
        i =0
        r2 = np.inner(trial_coords, trial_coords)
        if (r2> self.m_radius2):
            return False
        return True

#from mc import *










683de12d0550e9778ab2cd3c2d47c1a5c369f600
<mask token>


class CheckSphericalContainer(ConfTest):
    <mask token>
    m_radius2: float = 0
    <mask token>
    <mask token>

    def conf_test(self, trial_coords: np.ndarray) ->bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        r2: float = 0
        i = 0
        r2 = np.inner(trial_coords, trial_coords)
        if r2 > self.m_radius2:
            return False
        return True

<mask token>


class CheckSphericalContainer(ConfTest):
    <mask token>
    m_radius2: float = 0
    ndim = 0

    def __init__(self, radius: float, ndim):
        self.m_radius2 = radius
        self.ndim = ndim
        return None

    def conf_test(self, trial_coords: np.ndarray) ->bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        r2: float = 0
        i = 0
        r2 = np.inner(trial_coords, trial_coords)
        if r2 > self.m_radius2:
            return False
        return True

<mask token>


class CheckSphericalContainer(ConfTest):
    """Check that the system is within a spherical container
    
    Parameters
    ----------
    radius2 : double
        radius of the spherical container, centered at **0**
    ndim : int
        dimensionality of the space (box dimensionality)
    """
    m_radius2: float = 0
    ndim = 0

    def __init__(self, radius: float, ndim):
        self.m_radius2 = radius
        self.ndim = ndim
        return None

    def conf_test(self, trial_coords: np.ndarray) ->bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        r2: float = 0
        i = 0
        r2 = np.inner(trial_coords, trial_coords)
        if r2 > self.m_radius2:
            return False
        return True

from mcpele1.montecarlo.template import ConfTest, np


class CheckSphericalContainer(ConfTest):
    """Check that the system is within a spherical container
    
    Parameters
    ----------
    radius2 : double
        radius of the spherical container, centered at **0**
    ndim : int
        dimensionality of the space (box dimensionality)
    """
    m_radius2: float = 0
    ndim = 0

    def __init__(self, radius: float, ndim):
        self.m_radius2 = radius
        self.ndim = ndim
        return None

    def conf_test(self, trial_coords: np.ndarray) ->bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        r2: float = 0
        i = 0
        r2 = np.inner(trial_coords, trial_coords)
        if r2 > self.m_radius2:
            return False
        return True

from mcpele1.montecarlo.template import ConfTest, np


class CheckSphericalContainer(ConfTest):
    """Check that the system is within a spherical container
    
    Parameters
    ----------
    radius2 : double
        radius of the spherical container, centered at **0**
    ndim : int
        dimensionality of the space (box dimensionality)
    """
    
    m_radius2: float = 0
    ndim = 0
    
    def __init__(self, radius: float, ndim):
        self.m_radius2 = radius
        self.ndim = ndim
        return None 

    def conf_test(self, trial_coords: np.ndarray) -> bool:
        """Check that the 'trial_coords' of the system is within a spherical container
    
        Parameters
        ----------
        trial_coords : NumPy Array
            'coords' of the system
        
        Return
        ------
        Bool
            True if the conf condition is satistified, False if not
        """
        #N = len(trial_coords)
        r2: float = 0
        i =0
        r2 = np.inner(trial_coords, trial_coords)
        if (r2> self.m_radius2):
            return False
        return True

#from mc import *









