Skip to content

Commit

Permalink
fixed rtc
Browse files Browse the repository at this point in the history
  • Loading branch information
stsouko committed Apr 14, 2020
1 parent 50f20a0 commit 5f42839
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions CIMtools/applicability_domain/reaction_type_control.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright 2019 Assima Rakhimbekova <asima.astana@outlook.com>
# Copyright 2019 Ramil Nugmanov <nougmanoff@protonmail.com>
# Copyright 2019, 2020 Ramil Nugmanov <nougmanoff@protonmail.com>
# This file is part of CIMtools.
#
# CIMtools is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -48,7 +48,12 @@ def __get_signature(self, structure):
cgr = ~structure # Condence Graph of Reaction
# get subgraph with atoms and their neighbors
aug_center = cgr.augmented_substructure(cgr.center_atoms, deep=self.env, as_query=True)
return format(aug_center, '!n') # String for graph reaction center
# remove neighbors marks
sn = aug_center._neighbors
pn = aug_center._p_neighbors
for n in aug_center:
sn[n] = pn[n] = ()
return str(aug_center) # String for graph reaction center

def fit(self, X):
"""Fit structure-based AD. The training model memorizes the unique set of reaction signature.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from wheel.bdist_wheel import bdist_wheel


version = '4.0.1'
version = '4.0.2'

platform = get_platform()
if platform == 'win-amd64':
Expand Down

0 comments on commit 5f42839

Please sign in to comment.