-
Notifications
You must be signed in to change notification settings - Fork 394
Caiman PyTorch -> Ver 1.0.1 #1535
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
Conversation
pgunn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small things
demos/notebooks/demo_VST.ipynb
Outdated
| "source": [ | ||
| "if play_movies:\n", | ||
| " movie_gat.play(magnification=4, q_max=99.8)" | ||
| "#if play_movies:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the play_movies boolean makes commenting out lines like this now unnecessary
| "h = cm.concatenate([movie, movie_gat_inv], axis=2)\n", | ||
| "if play_movies:\n", | ||
| " h.play(magnification=5, q_max=99.5)" | ||
| "#if play_movies:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(as above)
| "source": [ | ||
| "if play_movies:\n", | ||
| " Y[...,5].play(magnification=2)" | ||
| "#if play_movies:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
| "downsample_ratio = .2 # motion can be perceived better when downsampling in time\n", | ||
| "m_orig.resize(1, 1, downsample_ratio)", | ||
| "# Set play_movies to false if you want to disable play of movies, e.g. for remote-hosted Jupyter environments\n", | ||
| "m_orig.resize(1, 1, downsample_ratio)# Set play_movies to false if you want to disable play of movies, e.g. for remote-hosted Jupyter environments\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this was a mistake.
| " fr=20, \n", | ||
| " magnification=1, \n", | ||
| " plot_text=True)" | ||
| "#if play_movies:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
| " magnification=1,\n", | ||
| " gain=0.6,\n", | ||
| " plot_text=True)\n" | ||
| "#if inspect_results and play_movies:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
| " 'motion_correct': True, # flag for performing motion correction\n", | ||
| " 'gSig_filt': (3, 3), # size of high pass spatial filtering, used in 1p data\n", | ||
| " 'use_cnn': False}\n", | ||
| " 'use_cnn': True} #False}\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to have a commented out false; people understand booleans
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Branching
Has your PR been tested?
If you're fixing a bug or introducing a new feature it is recommended you run the tests by typing
caimanmanager testand
caimanmanager demotestprior to submitting your pull request.
Please describe any additional tests that you ran to verify your changes. If they are fast you can also
include them in the folder 'caiman/tests/
and name themtest_***.py` so they can be included in our lists of tests.