route_distances/distances.py
def map_mode(self, mode):
        """ Remaps an input mode into a mode usable by an API

        Args:
            mode: A string to be remapped.

        Returns:
            The remapped string according to the class's mode_map attribute.

        Raises:
            LookupError: A mode to be remapped was not found in this class's
                self.mode_map dictionary.
        """

        if (mode in self.mode_map):
            return self.mode_map[mode]
        else:
            print("Invalid mode \"%s\"" % mode)
            raise LookupError
 Remaps an input mode into a mode usable by an API

        Args:
            mode: A string to be remapped.

        Returns:
            The remapped string according to the class's mode_map attribute.

        Raises:
            LookupError: A mode to be remapped was not found in this class's
                self.mode_map dictionary.
        
Remaps an input mode into a mode usable by an API
Remaps an input mode into a mode usable by an API
def map_mode(self, mode):
        if (mode in self.mode_map):
            return self.mode_map[mode]
        else:
            print("Invalid mode \"%s\"" % mode)
            raise LookupError
def map_mode ( self , mode ) : if ( mode in self . mode_map ) : return self . mode_map [ mode ] else : print ( "Invalid mode \"%s\"" % mode ) raise LookupError
Remaps an input mode into a mode usable by an API
Remaps an input mode into a mode usable by an API
""" Remaps an input mode into a mode usable by an API

        Args:
            mode: A string to be remapped.

        Returns:
            The remapped string according to the class's mode_map attribute.

        Raises:
            LookupError: A mode to be remapped was not found in this class's
                self.mode_map dictionary.
        """
The remapped string according to the class's mode_map attribute.
The remapped string according to the class ' s mode_map attribute .
A mode to be remapped was not found in this class's
self.mode_map dictionary.
A mode to be remapped was not found in this class ' s self . mode_map dictionary .
LookupError
self
mode
A string to be remapped.
A string to be remapped .