def _get_variable_from_filepath(self):
try:<EOL><INDENT>return self.regexp_capture_variable.search(self.filepath).group(<NUM_LIT:1>)<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._raise_cannot_determine_variable_from_filepath_error()<EOL><DEDENT>
Determine the file variable from the filepath.

Returns
-------
str
    Best guess of variable name from the filepath