def _get_run_hash(self):
<EOL>pipeline_path = get_nextflow_filepath(self.log_file)<EOL>pipeline_hash = hashlib.md5()<EOL>with open(pipeline_path, "<STR_LIT:rb>") as fh:<EOL><INDENT>for chunk in iter(lambda: fh.read(<NUM_LIT>), b"<STR_LIT>"):<EOL><INDENT>pipeline_hash.update(chunk)<EOL><DEDENT><DEDENT>workdir = self.workdir.encode("<STR_LIT:utf8>")<EOL>hostname = socket.gethostname().encode("<STR_LIT:utf8>")<EOL>hardware_addr = str(uuid.getnode()).encode("<STR_LIT:utf8>")<EOL>dir_hash = hashlib.md5(workdir + hostname + hardware_addr)<EOL>return pipeline_hash.hexdigest() + dir_hash.hexdigest()<EOL>
Gets the hash of the nextflow file