Skip to content

Commit 9537006

Browse files
authored
Merge pull request #185 from BIH-CEI/184-bug-mapper-check-in-model
strange
2 parents 72d1fe6 + 5fc8b20 commit 9537006

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/phenopacket_mapper/mapping/mapper.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ def __post_init__(self):
3030
for e in self.elements.values():
3131
self.check_data_fields_in_model(e)
3232

33-
34-
def check_fields_adheres_to_phenopacket_allowed_values(self):
35-
"""Check if the fields in the mapping adhere to the values in the Phenopacket schema
33+
# TODO: implement check_fields_adheres_to_phenopacket_allowed_values
3634

37-
Check the Phenopacket schema to see if the fields in the mapping adhere to the values allowed by the schema.
38-
Otherwise give precise error messages.
39-
"""
35+
def check_data_fields_in_model(self, element):
4036
if isinstance(element, DataField):
4137
field = element
4238
if field not in self.data_model:
@@ -75,4 +71,3 @@ def map(self, data: DataSet) -> List[Phenopacket]:
7571
raise e
7672

7773
return phenopackets_list
78-

0 commit comments

Comments
 (0)