def __eq__(self, other):
        """
        Equality method that checks if the LightStructureEnvironments object is equal to another
        LightStructureEnvironments object. Two LightStructureEnvironments objects are equal if the strategy used
        is the same, if the structure is the same, if the valences used in the strategies are the same, if the
        coordination environments and the neighbours determined by the strategy are the same
        :param other: LightStructureEnvironments object to compare with
        :return: True if both objects are equal, False otherwise
        """
        is_equal = (self.strategy == other.strategy and
                    self.structure == other.structure and
                    self.coordination_environments == other.coordination_environments and
                    self.valences == other.valences and
                    self.neighbors_sets == other.neighbors_sets)
        this_sites = [ss['site'] for ss in self._all_nbs_sites]
        other_sites = [ss['site'] for ss in other._all_nbs_sites]
        this_indices = [ss['index'] for ss in self._all_nbs_sites]
        other_indices = [ss['index'] for ss in other._all_nbs_sites]
        return (is_equal and this_sites == other_sites and this_indices == other_indices)
def __eq__ ( self , other ) : is_equal = ( self . strategy == other . strategy and self . structure == other . structure and self . coordination_environments == other . coordination_environments and self . valences == other . valences and self . neighbors_sets == other . neighbors_sets ) this_sites = [ ss [ 'site' ] for ss in self . _all_nbs_sites ] other_sites = [ ss [ 'site' ] for ss in other . _all_nbs_sites ] this_indices = [ ss [ 'index' ] for ss in self . _all_nbs_sites ] other_indices = [ ss [ 'index' ] for ss in other . _all_nbs_sites ] return ( is_equal and this_sites == other_sites and this_indices == other_indices )
Equality method that checks if the LightStructureEnvironments object is equal to another
        LightStructureEnvironments object. Two LightStructureEnvironments objects are equal if the strategy used
        is the same, if the structure is the same, if the valences used in the strategies are the same, if the
        coordination environments and the neighbours determined by the strategy are the same
        :param other: LightStructureEnvironments object to compare with
        :return: True if both objects are equal, False otherwise