def initialization(self, place_informations): """ PlacesAndTonguePosition.initialization place_informations : list of ( (str) conformational informations ) """ # pylint: disable=E1101 # ("Instance of 'PlacesAndTonguePosition' has no 'clear' member") # There's something weird about Pylint here... self.clear() for _place_informations in place_informations: self.append(_place_informations) self.set_as_defined() # Is this combination physically acceptable ? self.physically_acceptable() # expected informations : self.informations = PAT( organs=self[0], subapex=self[1][0][len("subapex:") :], apex=self[1][1][len("apex:") :], sublamina=self[1][2][len("sublamina:") :], lamina=self[1][3][len("lamina:") :], dorsum=self[1][4][len("dorsum:") :], radix=self[1][5][len("radix:") :], )
class PlacesAndTonguePosition(PhoSegDescriptiveElement): """ class PlacesAndTonguePosition = Topograph[ical]AspectOfArticulation .. code-block:: python self.informations = (dict) { "organs" : (list of strings), "tongue" : {"apex" : (str), "lamina" : (str), "dorsum" : (str) } } """ # /////////////////////////////////////////////////////////////////////////// def __init__(self, informations=None): """ PlacesAndTonguePosition.__init__ informations : see initialization() """ placesandtongueposition_object = Nomenclature( name="PlacesAndTonguePosition", default_initialization=PAT().for_nomenclature(), data=PLACESANDTONGUEPOSITION_NOMENCLATUREDATA, ) PhoSegDescriptiveElement.__init__( self, nomenclature=placesandtongueposition_object, func_initialization=self.initialization, informations=informations, ) # /////////////////////////////////////////////////////////////////////////// def initialization(self, place_informations): """ PlacesAndTonguePosition.initialization place_informations : list of ( (str) conformational informations ) """ # pylint: disable=E1101 # ("Instance of 'PlacesAndTonguePosition' has no 'clear' member") # There's something weird about Pylint here... self.clear() for _place_informations in place_informations: self.append(_place_informations) self.set_as_defined() # Is this combination physically acceptable ? self.physically_acceptable() # expected informations : self.informations = PAT( organs=self[0], subapex=self[1][0][len("subapex:") :], apex=self[1][1][len("apex:") :], sublamina=self[1][2][len("sublamina:") :], lamina=self[1][3][len("lamina:") :], dorsum=self[1][4][len("dorsum:") :], radix=self[1][5][len("radix:") :], ) # /////////////////////////////////////////////////////////////////////////// def is_alveolar(self): """ PlacesAndTonguePosition.is_alveolar """ # we call the corresponding PAT function : return self.informations.is_alveolar() # /////////////////////////////////////////////////////////////////////////// def is_bilabial(self): """ PlacesAndTonguePosition.is_bilabial """ # we call the corresponding PAT function : return self.informations.is_bilabial() # /////////////////////////////////////////////////////////////////////////// def is_dental(self): """ PlacesAndTonguePosition.is_dental """ # we call the corresponding PAT function : return self.informations.is_dental() # /////////////////////////////////////////////////////////////////////////// def is_labiodental(self): """ PlacesAndTonguePosition.is_labiodental """ # we call the corresponding PAT function : return self.informations.is_labiodental() # /////////////////////////////////////////////////////////////////////////// def is_labiovelar(self): """ PlacesAndTonguePosition.is_labiovelar """ # we call the corresponding PAT function : return self.informations.is_labiovelar() # /////////////////////////////////////////////////////////////////////////// def is_palatal(self): """ PlacesAndTonguePosition.is_palatal """ # we call the corresponding PAT function : return self.informations.is_palatal() # /////////////////////////////////////////////////////////////////////////// def is_palatoalveolar(self): """ PlacesAndTonguePosition.is_palatoalveolar """ # we call the corresponding PAT function : return self.informations.is_palatoalveolar() # /////////////////////////////////////////////////////////////////////////// def is_postalveolar(self): """ PlacesAndTonguePosition.is_postalveolar """ # we call the corresponding PAT function : return self.informations.is_postalveolar() # /////////////////////////////////////////////////////////////////////////// def is_uvular(self): """ PlacesAndTonguePosition.is_uvular """ # we call the corresponding PAT function : return self.informations.is_uvular() # /////////////////////////////////////////////////////////////////////////// def is_velar(self): """ PlacesAndTonguePosition.is_velar """ # we call the corresponding PAT function : return self.informations.is_velar()