File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/phenopacket_mapper/mapping Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,9 @@ def __post_init__(self):
30
30
for e in self .elements .values ():
31
31
self .check_data_fields_in_model (e )
32
32
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
36
34
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 ):
40
36
if isinstance (element , DataField ):
41
37
field = element
42
38
if field not in self .data_model :
@@ -75,4 +71,3 @@ def map(self, data: DataSet) -> List[Phenopacket]:
75
71
raise e
76
72
77
73
return phenopackets_list
78
-
You can’t perform that action at this time.
0 commit comments