flatironinstitute / CaImAn

Computational toolbox for large scale Calcium Imaging Analysis, including movie handling, motion correction, source extraction, spike deconvolution and result visualization.
https://caiman.readthedocs.io
GNU General Public License v2.0
639 stars 370 forks source link

caimanmanager detect editable #1357

Closed pgunn closed 5 months ago

pgunn commented 5 months ago

This has caimanmanager try to detect (through some fragile code that's in a try/except) when it's running on an install in editable mode and automatically apply the "inplace" modifier to the install subcommand so the user doesn't need to remember to do that.

This lifts two restrictions on the editable mode install: 1) The need to add --inplace to caimanmanager install 2) The need (for inplace only) to be in the source directory (when the opposite is required for a pip install without -e)

Will merge this as soon as it passes CI as I'm preparing an urgent release to deal with upstream tensorflow breaking us