Skip to content

Commit

Permalink
Merge pull request #1047 from annie-xd-wang/fix-configurator-error
Browse files Browse the repository at this point in the history
avoid wrting empty keys to the configuration.yaml file
  • Loading branch information
AdvancedImagingUTSW authored Dec 16, 2024
2 parents 1d71b07 + dca5004 commit 1d0bbfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigate/controller/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def write_func(prefix, config_dict, f):
for list_item in config_dict[k]:
f.write(f"{prefix}{list_prefix}-\n")
write_func(prefix + list_prefix * 2, list_item, f)
else:
elif k != "":
f.write(f"{prefix}{k}: {config_dict[k]}\n")

with open(filename, "w") as f:
Expand Down

0 comments on commit 1d0bbfe

Please sign in to comment.