Coexistance of cellfinder+brainreg CLI tool and cellfinder-core workflow#58
Coexistance of cellfinder+brainreg CLI tool and cellfinder-core workflow#58alessandrofelder merged 18 commits intomainfrom
Conversation
|
I might have missed something, but is this needed? What used to be called |
|
We need to somehow distinguish the CLI tool (present in this repo) from benchmarked scripts using the Python tool's API? |
|
my understanding is that the cellfinder+brainreg CLI tool is called in this repo |
This should change soon anyway, but maybe it's good to specify |
willGraham01
left a comment
There was a problem hiding this comment.
The plan in the description sounds a lot more synthesised than in our Thursday programming session, great job 😄
Some comments on the README but most of them are me just rephrasing things or VSCode markdown lint getting angry. Haven't touched the ASV stuff because it scares me.
Slight comment, I think we will maintain some CLIs (i.e. just the command line interface) that are heavily used. However, I think we should move most of the code inside these workflows to other packages so that it can be a single workflow script. |
…inder-brainreg CLI while keeping backwards comp) WIP
Co-authored-by: Will Graham <32364977+willGraham01@users.noreply.github.com>
b04a067 to
bf19874
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #58 +/- ##
==========================================
+ Coverage 81.37% 81.39% +0.02%
==========================================
Files 32 32
Lines 1584 1586 +2
==========================================
+ Hits 1289 1291 +2
Misses 295 295 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Will Graham <32364977+willGraham01@users.noreply.github.com>
alessandrofelder
left a comment
There was a problem hiding this comment.
Great - happy with this plan.
Context
This repository currently serves a few purposes:
cellfinderCLI tool (onwards called 'cellfinder+brainregCLI tool' for clarity).cellfinder-coreworkflow script.Our understanding is that the
cellfinder+brainregCLI tool will be gradually discontinued (in line with thebrainglobegeneral aim of removing CLI tools) and turned into a workflow script instead. This PR outlines a strategy to get there.Goal of this PR
With this PR, the
brainglobe-workflowsPyPI package will ship:cellfinder+brainregCLI tool, andcellfinder_coreworkflow script.The
cellfinder_coreworkflow script is only included in the source code, and users are not meant to be "aware" of it (aka, it is not documented in the user docs). Users will use thecellfinder+brainregCLI tool in the same way as they did before.Instead, developers are aware of the
cellfinder_coreworkflow script and of the benchmarks defined on top of it (that is, both things are documented in the dev docs).How do users use this repo?
Users will
pip install brainglobe-workflowsand use thecellfinder+brainregCLI tool as usual, with thecellfinderentrypoint.How do devs use this repo?
Devs will:
pip install .[dev]asv runor run tests withtox/pytestThree sets of dependencies
To cater for these different audiences, we divided the dependencies in
pyproject.tomlinto three sets:dependencies, the required ones. We propose that these contain the dependencies for thecellfinder+brainregCLI tool only, for now (see Longer term section).dev, contains the dependencies required by developers to contribute to the repo (run tests, benchmarks, etc).asv_version, contains the dependencies required byasvto be able to run the benchmarks.cellfinder+brainregCLI tool is deprecated, these dependencies will move to the default dependencies section.Longer term
cellfinder+brainregCLI tool.cellfinder+brainregCLI tool will be transformed into a workflow script, and we will no longer have the need to publish a package in PyPI of this repo. When that happens all of the dependencies underasv_versionwould move to the required dependencies section.Specifics of this PR
asv_versiondependencies only.Rebase after merging #27