Skip to content

Commit

Permalink
Add indentation to pretify brainglobe-registration.json
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jan 6, 2025
1 parent 498ce1a commit 668bd80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions brainglobe_registration/registration_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,11 @@ def _on_run_button_click(self):
)

with open(

Check warning on line 512 in brainglobe_registration/registration_widget.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_registration/registration_widget.py#L512

Added line #L512 was not covered by tests
self.output_directory / "brainglobe_registration.json", "w"
self.output_directory / "brainglobe-registration.json", "w"
) as f:
json.dump(self, f, default=serialize_registration_widget)
json.dump(

Check warning on line 515 in brainglobe_registration/registration_widget.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_registration/registration_widget.py#L515

Added line #L515 was not covered by tests
self, f, default=serialize_registration_widget, indent=4
)

def _on_transform_type_added(
self, transform_type: str, transform_order: int
Expand Down

0 comments on commit 668bd80

Please sign in to comment.