Skip to content

Commit

Permalink
CC-8 Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Nov 21, 2023
1 parent 9ef0b7b commit 1090405
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/cryo_et_neuroglancer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,21 @@ def parse_args(args):

# URL creation
subcommand = subparsers.add_parser(
"create-url", help="Open a neuroglancer viewer and creates a URL and JSON state on-demand"
"create-url",
help="Open a neuroglancer viewer and creates a URL and JSON state on-demand",
)
neuroglancer.cli.add_server_arguments(subcommand)
subcommand.set_defaults(func=viewer_to_url)

# JSON loading
subcommand = subparsers.add_parser(
"load-state", help="Load a neuroglancer JSON state file in a neuroglancer viewer"
"load-state",
help="Load a neuroglancer JSON state file in a neuroglancer viewer",
)
subcommand.add_argument("path", help="JSON state file to load")
neuroglancer.cli.add_server_arguments(subcommand)
subcommand.set_defaults(func=load_json_to_url)


return parser.parse_args(args)


Expand Down
2 changes: 1 addition & 1 deletion src/cryo_et_neuroglancer/url_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def load_json_to_url(path: str, **server_kwargs):

open_browser(viewer)
loop_json_and_url(viewer)
return 0
return 0

0 comments on commit 1090405

Please sign in to comment.