Skip to content

Commit

Permalink
warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
eloyfelix committed Dec 26, 2024
1 parent 2625005 commit 931b77f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions FPSim2/io/backends/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,8 @@ def __init__(
self.chunk_size = fp_file.root.fps.chunkshape[0] * 120
if self.rdkit_ver != rdkit.__version__:
print(
f"Warning: Database was created with RDKit version {self.rdkit_ver} but installed version is {rdkit.__version__}"
)
if self.fpsim2_ver != __version__:
print(
f"Warning: Database was created with FPSim2 version {self.fpsim2_ver} but installed version is {__version__}"
f"Warning: Database was created with RDKit version {self.rdkit_ver} but installed version is {rdkit.__version__}. "
"Please ensure there were no relevant changes in RDKit regarding fingerprint generation between these versions."
)

def read_parameters(self) -> Tuple[str, Dict[str, Dict[str, dict]], str]:
Expand Down
7 changes: 2 additions & 5 deletions FPSim2/io/backends/sqla.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,8 @@ def __init__(self, conn_url: str, table_name: str, pg_schema: str) -> None:
self.load_popcnt_bins()
if self.rdkit_ver != rdkit.__version__:
print(
f"Warning: Database was created with RDKit version {self.rdkit_ver} but installed version is {rdkit.__version__}"
)
if self.fpsim2_ver != __version__:
print(
f"Warning: Database was created with FPSim2 version {self.fpsim2_ver} but installed version is {__version__}"
f"Warning: Database was created with RDKit version {self.rdkit_ver} but installed version is {rdkit.__version__}. "
"Please ensure there were no relevant changes in RDKit regarding fingerprint generation between these versions."
)

def read_parameters(self) -> Tuple[str, Dict[str, Dict[str, dict]], str]:
Expand Down

0 comments on commit 931b77f

Please sign in to comment.