Skip to content

Conversation

@matham
Copy link
Contributor

@matham matham commented Jun 17, 2025

Description

What is this PR

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?

Cellfinder recently got / is in the process of getting new args. This adds support for those, including updating the docs to match those from cellfinder.

Also, cellfinder was called using positional args instead of keyword args, making adding new args to cellfinder harder. This switches to only use keyword args.

What does this PR do?

  1. Converts positional args to keyword args.
  2. Adds support for the new args.
  3. Updates the docs for the cellfinder args.
  4. Added both detection_batch_size and classification_batch_size, instead of the singular batch_size. And marked the latter as deprecated. Python 3.13+ has an actual deprecated arg we can use, but we can't use it yet. If batch_size is provided, it still sets classification_batch_size like before.

References

It's WIP until these PRs with potential new parameters are resolved: brainglobe/cellfinder#542, brainglobe/cellfinder#545, and brainglobe/cellfinder#546.

Also, it requires brainglobe/brainglobe-utils#128.

How has this PR been tested?

I tested it with data locally.

Is this a breaking change?

It only breaks things in the sense that it will require the latest version of cellfinder and brainglobe-utils. Because older versions won't support these function calls. We probably should set the min versions in the dependencies.

Does this PR require an update to the documentation?

No.

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality (unit & integration)
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant