Skip to content

Commit

Permalink
strange
Browse files Browse the repository at this point in the history
  • Loading branch information
frehburg committed Oct 17, 2024
1 parent 72d1fe6 commit 5fc8b20
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/phenopacket_mapper/mapping/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ def __post_init__(self):
for e in self.elements.values():
self.check_data_fields_in_model(e)


def check_fields_adheres_to_phenopacket_allowed_values(self):
"""Check if the fields in the mapping adhere to the values in the Phenopacket schema
# TODO: implement check_fields_adheres_to_phenopacket_allowed_values

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

return phenopackets_list

0 comments on commit 5fc8b20

Please sign in to comment.