Skip to content

Commit 179069b

Browse files
Remove
1 parent 41f3884 commit 179069b

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

chemicalx/data/contextfeatureset.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ def __getitem__(self, context: str):
2626
"""
2727
return self.__dict__[context]
2828

29-
def __repr__(self):
30-
return repr(self.__dict__)
31-
3229
def __len__(self):
3330
"""Getting the number of biological/chemical contexts.
3431
@@ -53,14 +50,6 @@ def clear(self):
5350
"""
5451
return self.__dict__.clear()
5552

56-
def copy(self):
57-
"""Creating a deep copy of the context feature set.
58-
59-
Returns:
60-
ContextFeatureSet: A deep copy of the context feature set.
61-
"""
62-
return self.__dict__.copy()
63-
6453
def has_context(self, context: str):
6554
"""Checking whether a context feature set contains a context.
6655

tests/unit/test_datastructures.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ def test_get(self):
1818
assert ("context_2" in self.context_feature_set) == True
1919
assert self.context_feature_set.has_context("context_2") == True
2020

21-
def test_copy(self):
22-
self.another_context_feature_set = self.context_feature_set.copy()
23-
assert len(self.another_context_feature_set) == len(self.context_feature_set)
24-
21+
def test_delete(self):
22+
self.another_context_feature_set = self.context_feature_set
2523
del self.another_context_feature_set["context_1"]
2624
del self.another_context_feature_set["context_2"]
2725
assert self.another_context_feature_set.get_context_feature_count() == None

0 commit comments

Comments
 (0)