-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coexistance of cellfinder+brainreg CLI tool and cellfinder-core workflow #58
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great - happy with this plan.
Context
This repository currently serves a few purposes:
cellfinder
CLI tool (onwards called 'cellfinder+brainreg
CLI tool' for clarity).cellfinder-core
workflow script.Our understanding is that the
cellfinder+brainreg
CLI tool will be gradually discontinued (in line with thebrainglobe
general 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-workflows
PyPI package will ship:cellfinder+brainreg
CLI tool, andcellfinder_core
workflow script.The
cellfinder_core
workflow 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+brainreg
CLI tool in the same way as they did before.Instead, developers are aware of the
cellfinder_core
workflow 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-workflows
and use thecellfinder+brainreg
CLI tool as usual, with thecellfinder
entrypoint.How do devs use this repo?
Devs will:
pip install .[dev]
asv run
or run tests withtox
/pytest
Three sets of dependencies
To cater for these different audiences, we divided the dependencies in
pyproject.toml
into three sets:dependencies
, the required ones. We propose that these contain the dependencies for thecellfinder+brainreg
CLI 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 byasv
to be able to run the benchmarks.cellfinder+brainreg
CLI tool is deprecated, these dependencies will move to the default dependencies section.Longer term
cellfinder+brainreg
CLI tool.cellfinder+brainreg
CLI 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_version
would move to the required dependencies section.Specifics of this PR
asv_version
dependencies only.Rebase after merging #27