@classmethod<EOL><INDENT>def from_file(cls, fpath, position=<NUM_LIT:1>, file_id=None):<DEDENT>
if file_id is None:<EOL><INDENT>file_id = fpath<EOL><DEDENT>with open(fpath) as f:<EOL><INDENT>code = f.read()<EOL>file_content = str(code)<EOL>file_metadata = FileMetadata(file_id, position)<EOL>return cls(file_metadata, file_content)<EOL><DEDENT>
Convience method to create a kappa file object from a file on disk

Inputs
------
fpath -- path to the file on disk
position -- (default 1) rank among all files of the model while parsing
    see FileMetadata
file_id -- (default = fpath) the file_id that will be used by kappa.