Skip to content

Add a CVI factory #111

Closed
Closed

Description

@NiklasMelton

We have about 11 different CVIs and only CONN takes parameters. It would be a nice QoL improvement to add a CVI factory to the module so that a user could just do something like:

from cvi import CVI

ch = CVI('CH')
sil = CVI('cSIL')
...

This is very useful for looping through CVIs or parameterizing the CVI a user wants to use in downstream methods. It would also be simple to implement. I think the best way would be to rename the base CVI class to something like _CVI and then make give the factory the name CVI in the __init__ file:

from .modules.Factory import CVIFactory as CVI
...

Activity

  1. self-assigned this
    on Sep 22, 2026
  2. added
    enhancement
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions