@classmethod
def read_from_file(cls, filename):
    """Reads a string file and returns a :class:`DrillString` object with `DrillString.parameters` based on data in the string file.
        
        Parameters
        ----------
        filename : str
            Filename of a string file.
            
        Returns
        -------
        DrillString
            :class:`DrillString` object with parameters from the passed string file.
        """
    drill_string = cls('', '', '')
    drill_string._get_params_from_TO_data(filename)
    drill_string._get_tools_from_TO_data(filename)
    return drill_string
