def from_text_file(file_path):
        """Load MonsoonData objects from a text file generated by
        MonsoonData.save_to_text_file.

        Args:
            file_path: The full path of the file load from, including the file
                name.

        Returns:
            A list of MonsoonData objects.
        """
        results = []
        with io.open(file_path, 'r', encoding='utf-8') as f:
            data_strs = f.read().split(MonsoonData.delimiter)
            for data_str in data_strs:
                results.append(MonsoonData.from_string(data_str))
        return results
def from_text_file ( file_path ) : results = [ ] with io . open ( file_path , 'r' , encoding = 'utf-8' ) as f : data_strs = f . read ( ) . split ( MonsoonData . delimiter ) for data_str in data_strs : results . append ( MonsoonData . from_string ( data_str ) ) return results
Load MonsoonData objects from a text file generated by
        MonsoonData.save_to_text_file.

        Args:
            file_path: The full path of the file load from, including the file
                name.

        Returns:
            A list of MonsoonData objects.