Skip to content

Instantly share code, notes, and snippets.

@jterrazz
Created August 29, 2019 09:52
Show Gist options
  • Save jterrazz/dd7ba03e67738e9a9ad695a88ea2c87d to your computer and use it in GitHub Desktop.
Save jterrazz/dd7ba03e67738e9a9ad695a88ea2c87d to your computer and use it in GitHub Desktop.
for rule in npi_rules:
atoms = list(re.sub(REGEX_OP, '', rule.npi_left))
atoms += list(re.sub(REGEX_OP, '', rule.npi_right))
self.atoms.update(dict((atom_str, self.create_atom(atom_str)) for atom_str in atoms))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment