Skip to content

Commit

Permalink
Fixing pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Nov 7, 2023
1 parent ef2a753 commit 4bc1af3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pynxtools/dataconverter/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ def ensure_all_required_fields_exist(template, data, nxdl_root, logger):
if opt_parent != "<<NOT_FOUND>>":
if does_group_exist(opt_parent, data) and not does_group_exist(renamed_path, data):
logger.warning(f"The required group, {path}, hasn't been supplied"
f" while its optional parent, {path}, is supplied.")
f" while its optional parent, {path}, is supplied.")
continue
if not does_group_exist(renamed_path, data):
raise ValueError(f"The required group, {path}, hasn't been supplied.")
continue
if not is_path_in_data_dict or data[renamed_path] is None:
logger.warning(f"The data entry corresponding to {path} is required "
f"and hasn't been supplied by the reader.")
f"and hasn't been supplied by the reader.")


def try_undocumented(data, nxdl_root: ET.Element):
Expand Down
2 changes: 1 addition & 1 deletion pynxtools/definitions
Submodule definitions updated 293 files

0 comments on commit 4bc1af3

Please sign in to comment.