-
Notifications
You must be signed in to change notification settings - Fork 370
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
Save results to a user given output directory #948
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: jverswijver <[email protected]>
Co-authored-by: Thinh Nguyen <[email protected]>
changed `if return_mc:` to ` if return_mc & motion_correct:` to make sure that motion correction is applied if we want to return the `motion correction object`
`base_name` line is changed to its original form.
added user given output directory
Hi @pgunn - I was wondering if you had a chance to look at this PR, and if so, about your opinion. |
Hello, Try this:
(replace that value of CAIMAN_TEMP to something valid on your filesystem) You'd do this with the version of caiman that does not have your patches; it should achieve the goal of keeping the temporary files of separate jobs distinct from each other. I've been meaning to make these changes the default (after a lot more extensive testing), but other projects got in the way; I still mean to at some point. |
It should (provided CAIMAN_NEW_TEMPFILE is also set to be true) |
I just tried this and it doesn't affect the location of the created memmap for motion correction. From searching the codebase it appears that https://github.com/flatironinstitute/CaImAn/search?q=fn_relocated%28 |
Ah, sorry about that. I'll have to improve on this. |
@pgunn no worries, I could try to implement this for offline motion correction and do a PR later this week. |
Synch to company
Synch with flatiron
Where are we with this PR? |
I did the PR for mcorr so it uses the env var: For CNMF you can already save the hdf file to whereever you want. Longterm we should have a better storage system, perhaps in v2. This is part of what mesmerize does :) |
include `indices` argument to the motion correction step
Remove `indices` arg from `MotionCorrect`
I'm going to look at this again soon given that you're working on it; given that this is something we've been working on for awhile and we probably want roughly the same end (but not necessarily the same implementation), we'll have to figure out if/how to get this merged in (and whether to sync it with my own efforts or not). |
Dev to main for release patch 1.10.2
dev -> master for 1.10.3 release
Merge to main for 1.10.5 release
dev->main for release (bugfix on last release)
Dev->main for release
dev -> main for release again
Dev -> Main for release of 1.11.0
dev->main for release 1.11.1
Pull changes from `flatironinstitute` and resolve merge conflicts
Description
The changes made in this PR allows
cnmf.fit_file
method 1) to save the results in a user given output directory and 2) to return resultantmotion correction
object, if specified with a flag. All the changes made are backward compatible.The motivation behind the changes is to incorporate CaImAn into a DataJoint workflow. We realized that the flexibility to save the results into a user given output directory was also thought by the CaImAn developers. As a reference please see the following block of code with comments from the
load_memmap
function in themmaping.py
file:The changes made in this PR requires only the
pathlib
python package.Type of change
Has your PR been tested?
This PR has successfully passed both
python caimanmanager.py test
and
python caimanmanager.py demotest
prior to submitting our pull request.