From 1644c21648f0d50d3855ea072379f56b3c94a7b0 Mon Sep 17 00:00:00 2001 From: Alberto Cattaneo Date: Fri, 9 Aug 2024 08:28:09 +0000 Subject: [PATCH] final touches --- pyproject.toml | 2 +- src/kg_topology_toolbox/topology_toolbox.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6628c79..edc0115 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "kg-topology-toolbox" -version = "0.1.0" +version = "1.0.0" authors = [ {name = "Alberto Cattaneo"}, {name = "Daniel Justus"}, diff --git a/src/kg_topology_toolbox/topology_toolbox.py b/src/kg_topology_toolbox/topology_toolbox.py index db76ef7..e6516bc 100644 --- a/src/kg_topology_toolbox/topology_toolbox.py +++ b/src/kg_topology_toolbox/topology_toolbox.py @@ -60,7 +60,7 @@ def __init__( self.df = kg_df[[head_column, relation_column, tail_column]].rename( columns={head_column: "h", relation_column: "r", tail_column: "t"} ) - if self.df.duplicated(subset=["h", "r", "t"]).any(): + if self.df.duplicated().any(): warnings.warn( "The Knowledge Graph contains duplicated edges" " -- some functionalities may produce incorrect results"