Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2024
1 parent ef62b49 commit a0841de
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/pyflask/manageNeuroconv/manage_neuroconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,19 +931,25 @@ def update_conversion_progress(message):
# print("\n")

for interface_or_subconverter in conversion_options:
conversion_options_schema_per_interface_or_converter = conversion_options_schema.get("properties", dict()).get(interface_or_subconverter, dict())
conversion_options_schema_per_interface_or_converter = conversion_options_schema.get(
"properties", dict()
).get(interface_or_subconverter, dict())

# Object is a nested converter
if conversion_options_schema_per_interface_or_converter.get("title", "") =="Conversion options schema":
if conversion_options_schema_per_interface_or_converter.get("title", "") == "Conversion options schema":
subconverter = interface_or_subconverter

conversion_options_schema_per_subinterface = conversion_options_schema_per_interface_or_converter.get("properties", dict())
conversion_options_schema_per_subinterface = conversion_options_schema_per_interface_or_converter.get(
"properties", dict()
)

for subinterface in conversion_options_schema_per_subinterface.keys():
conversion_options[subconverter][subinterface] = dict()
options_to_update = conversion_options[subconverter][subinterface]["conversion_options"]

properties_per_subinterface = conversion_options_schema_per_subinterface[subinterface].get("properties", dict())
properties_per_subinterface = conversion_options_schema_per_subinterface[subinterface].get(
"properties", dict()
)

if run_stub_test is True and "stub_test" in properties_per_subinterface:
options_to_update["stub_test"] = True
Expand Down

0 comments on commit a0841de

Please sign in to comment.