parse_cif/main.py
def read_and_check_symm(self, symm_input):
        """Check if the input symmetry (_space_group_name_H-M_alt convention) starts with a correct character,
        and convert the string to upper/lower case to help ASE for its parsing.
        """
        first_char_list = {'A', 'C', 'F', 'I', 'P', 'R'}
        first_char_inp = symm_input.strip()[0].upper()
        other_char_inp = symm_input.strip()[1:].lower()
        if first_char_inp not in first_char_list:
            raise ValueError(f"No space group starts with '{first_char_inp}': check the table at the bottom!")
        return first_char_inp + other_char_inp
Check if the input symmetry (_space_group_name_H-M_alt convention) starts with a correct character,
        and convert the string to upper/lower case to help ASE for its parsing.
        
Check if the input symmetry (_space_group_name_H-M_alt convention) starts with a correct character,
and convert the string to upper/lower case to help ASE for its parsing.
Check if the input symmetry ( _space_group_name_H - M_alt convention ) starts with a correct character and convert the string to upper / lower case to help ASE for its parsing .
def read_and_check_symm(self, symm_input):
        first_char_list = {'A', 'C', 'F', 'I', 'P', 'R'}
        first_char_inp = symm_input.strip()[0].upper()
        other_char_inp = symm_input.strip()[1:].lower()
        if first_char_inp not in first_char_list:
            raise ValueError(f"No space group starts with '{first_char_inp}': check the table at the bottom!")
        return first_char_inp + other_char_inp
def read_and_check_symm ( self , symm_input ) : first_char_list = { 'A' , 'C' , 'F' , 'I' , 'P' , 'R' } first_char_inp = symm_input . strip ( ) [ 0 ] . upper ( ) other_char_inp = symm_input . strip ( ) [ 1 : ] . lower ( ) if first_char_inp not in first_char_list : raise ValueError ( f"No space group starts with '{first_char_inp}': check the table at the bottom!" ) return first_char_inp + other_char_inp
Check if the input symmetry (_space_group_name_H-M_alt convention) starts with a correct character,
and convert the string to upper/lower case to help ASE for its parsing.
Check if the input symmetry ( _space_group_name_H - M_alt convention ) starts with a correct character and convert the string to upper / lower case to help ASE for its parsing .
"""Check if the input symmetry (_space_group_name_H-M_alt convention) starts with a correct character,
        and convert the string to upper/lower case to help ASE for its parsing.
        """
self
symm_input