Skip to content

[Feature] Decide how to expose tools to users #5

@willGraham01

Description

@willGraham01

Is your feature request related to a problem? Please describe.
We should decide which, and how, to expose the various BrainGlobe tools included in the meta-package to users.

We should also document the new names/aliases of the tools.

Describe the solution you'd like
Users should be able to select the tool they wish to use from methods within the brainglobe namespace, which we can achieve in the manner described in Adam's comment here.

Describe alternatives you've considered
We could also expose all the (user-facing) sub-packages in __init__.py which has the advantage of not making the sub-package documentation redundant (until it relocates to the new website of course, when we can update our pointers accordingly).

brainglobe/__init__.py

import cellfinder-core as cellfinder
import brainreg

Then users would still have access to every public-facing tool, but the under-the-hood packages can remain hidden and we can reorganise them as we see fit.

import bg.cellfinder

# Do cellfinder things with bg.cellfinder, without ever worrying about cellfinder-core being there under-the-hood.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions