Skip to content

Commit 9875171

Browse files
committed
minor bug fix self not included in some function
1 parent c6dc82c commit 9875171

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "pyjedai"
9-
version = "0.2.8"
9+
version = "0.2.9"
1010
description = "An open-source library that builds powerful end-to-end Entity Resolution workflows."
1111
readme = "README.md"
1212
authors = [

src/pyjedai/schema/schema_model.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def __init__(
2929

3030
if not isinstance(dataset_2, pd.DataFrame):
3131
raise AttributeError("Dataset 2 must be a pandas DataFrame")
32-
33-
32+
3433
if matching_type == 'CONTENT':
3534
dataset_1, dataset_2, ground_truth = self.load_content(dataset_1, dataset_2, ground_truth, skip_ground_truth_processing)
3635
elif matching_type == 'COMPOSITE':
@@ -55,7 +54,6 @@ def load_content(self,
5554
ground_truth: DataFrame = None,
5655
skip_ground_truth_processing: bool = False) -> tuple:
5756

58-
5957
dataset_1 = dataset_1.astype(str)
6058
dataset_2 = dataset_2.astype(str)
6159

@@ -102,8 +100,7 @@ def load_content(self,
102100
self.ground_truth = ground_truth
103101
return dataset_1, dataset_2, ground_truth
104102

105-
106-
def load_composite(
103+
def load_composite(self,
107104
dataset_1: DataFrame,
108105
dataset_2: DataFrame,
109106
ground_truth: DataFrame = None,
@@ -155,13 +152,13 @@ def load_composite(
155152
return dataset_1, dataset_2, ground_truth
156153

157154

158-
159-
def load_schema(
155+
def load_schema(self,
160156
dataset_1: DataFrame,
161157
dataset_2: DataFrame,
162158
ground_truth: DataFrame = None,
163159
skip_ground_truth_processing: bool = False
164160
) -> tuple:
161+
165162
dataset_1 = dataset_1.astype(str)
166163
dataset_2 = dataset_2.astype(str)
167164

0 commit comments

Comments
 (0)