Skip to content

Commit

Permalink
remove entry point for cellfinder workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Apr 22, 2024
1 parent 34c8404 commit ec017c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
18 changes: 2 additions & 16 deletions brainglobe_workflows/cellfinder_core/cellfinder_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,27 +437,13 @@ def main(
return cfg


def main_app_wrapper():
"""Parse command line arguments and
run cellfinder setup and workflow
This function is used to define an entry-point,
that allows the user to run the cellfinder workflow
for a given input config file as:
`cellfinder-workflow --config <path-to-input-config>`.
If no input config file is provided, the default is used.
if __name__ == "__main__":

"""
# parse CLI arguments
args = config_parser(
sys.argv[1:], # sys.argv[0] is the script name
sys.argv[1:],
str(DEFAULT_JSON_CONFIG_PATH_CELLFINDER),
)

# run setup and workflow
_ = main(args.config)


if __name__ == "__main__":
main_app_wrapper()
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ napari = ["napari[pyqt5]", "brainglobe-napari-io", "cellfinder[napari]>=1.0.0"]
"Source Code" = "https://github.com/brainglobe/brainglobe-workflows"

[project.scripts]
cellfinder-workflow = "brainglobe_workflows.cellfinder_core.cellfinder_core:main_app_wrapper"
brainmapper = "brainglobe_workflows.brainmapper.main:main"

[build-system]
Expand Down

0 comments on commit ec017c2

Please sign in to comment.