Skip to content

Commit

Permalink
rename cellfinder_core refs to cellfinder only
Browse files Browse the repository at this point in the history
  • Loading branch information
sfmig committed Apr 22, 2024
1 parent cf25460 commit 10a1002
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions benchmarks/cellfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from cellfinder.core.main import main as cellfinder_run
from cellfinder.core.tools.IO import read_with_dask

from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
CellfinderConfig,
run_workflow_from_cellfinder_run,
)
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
setup as setup_cellfinder_workflow,
)
from brainglobe_workflows.utils import DEFAULT_JSON_CONFIG_PATH_CELLFINDER
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
Example usage:
- to pass a custom configuration, run (from the cellfinder_main.py
parent directory):
python cellfinder_core.py --config path/to/input/config.json
python brainglobe_workflows/cellfinder.py --config path/to/input/config.json
- to use the default configuration, run
python cellfinder_core.py
python brainglobe_workflows/cellfinder.py
"""
Expand Down Expand Up @@ -81,7 +81,7 @@ class CellfinderConfig:

# install path: default path for downloaded and output data
_install_path: Pathlike = (
Path.home() / ".brainglobe" / "workflows" / "cellfinder_core"
Path.home() / ".brainglobe" / "workflows" / "cellfinder"
)

# input data paths
Expand Down
2 changes: 1 addition & 1 deletion brainglobe_workflows/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def config_parser(
To launch the cellfinder workflow with default parameters, run:
`cellfinder-workflow`.
The default parameters are those specifed in brainglobe_workflows/
cellfinder_core/configs/cellfinder.json.
cellfinder/configs/cellfinder.json.
To launch the cellfinder workflow with a specific set of input
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ 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"
cellfinder-workflow = "brainglobe_workflows.cellfinder.cellfinder:main_app_wrapper"
brainmapper = "brainglobe_workflows.brainmapper.main:main"

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion tests/cellfinder_core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def GIN_default_location() -> Path:
Path.home()
/ ".brainglobe"
/ "workflows"
/ "cellfinder_core"
/ "cellfinder"
/ "cellfinder_test_data"
)

Expand Down
4 changes: 2 additions & 2 deletions tests/cellfinder_core/test_integration/test_cellfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_main():
"""
# import inside the test function so that required functions are
# monkeypatched first
from brainglobe_workflows.cellfinder_core.cellfinder_core import main
from brainglobe_workflows.cellfinder.cellfinder import main

# run main
cfg = main()
Expand Down Expand Up @@ -43,7 +43,7 @@ def test_main_w_inputs(
request : pytest.FixtureRequest
Pytest fixture to enable requesting fixtures by name
"""
from brainglobe_workflows.cellfinder_core.cellfinder_core import main
from brainglobe_workflows.cellfinder.cellfinder import main

# run main
cfg = main(str(request.getfixturevalue(input_config)))
Expand Down
12 changes: 6 additions & 6 deletions tests/cellfinder_core/test_unit/test_cellfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_add_input_paths(
Pytest fixture to enable requesting fixtures by name
"""

from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
CellfinderConfig,
)

Expand Down Expand Up @@ -245,7 +245,7 @@ def test_read_cellfinder_config(
Pytest fixture to enable requesting fixtures by name
"""
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
read_cellfinder_config,
)

Expand Down Expand Up @@ -318,10 +318,10 @@ def test_setup(
request : pytest.FixtureRequest
Pytest fixture to enable requesting fixtures by name
"""
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
CellfinderConfig,
)
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
setup as setup_workflow,
)

Expand Down Expand Up @@ -358,10 +358,10 @@ def test_run_workflow_from_cellfinder_run(
request : pytest.FixtureRequest
Pytest fixture to enable requesting fixtures by name
"""
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
run_workflow_from_cellfinder_run,
)
from brainglobe_workflows.cellfinder_core.cellfinder_core import (
from brainglobe_workflows.cellfinder.cellfinder import (
setup as setup_workflow,
)

Expand Down

0 comments on commit 10a1002

Please sign in to comment.