<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_index_from_filename(self, filename):

 """
 Return the position index of a file in the tab bar of the editorstack
 from its name.
 """

        filenames = [d.filename for d in self.data]
        return filenames.index(filename)