Skip to content

Commit

Permalink
Properly resolve upper/lower case group fields
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jan 18, 2024
1 parent fa4e27f commit 669dc52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pynxtools/dataconverter/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,15 @@ def is_valid_data_field(value, nxdl_type, path):

def path_in_data_dict(nxdl_path: str, data: dict) -> Tuple[bool, str]:
"""Checks if there is an accepted variation of path in the dictionary & returns the path."""
accepted_unfilled_key = None
for key in data.keys():
if nxdl_path == convert_data_converter_dict_to_nxdl_path(key):
if data[key] is None:
accepted_unfilled_key = key
continue
return True, key
if accepted_unfilled_key:
return True, accepted_unfilled_key
return False, None


Expand Down

0 comments on commit 669dc52

Please sign in to comment.