Skip to content

Conversation

@manuelpaeza
Copy link
Contributor

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would break back-compatibility)
  • Changes in documentation or new examples for demos and/or use cases.

Branching

  • All PRs should be made against the dev branch. The main branch is not often merged back to dev.
  • If you want to get your PR out to the world faster (urgent bugfix), poke pgunn to cut a release; this will get it onto github and into conda faster

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 test

and

caimanmanager demotest

prior 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.

Copy link
Member

@pgunn pgunn left a 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

"source": [
"if play_movies:\n",
" movie_gat.play(magnification=4, q_max=99.8)"
"#if play_movies:\n",
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a mistake?

Copy link
Contributor Author

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",
Copy link
Member

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",
Copy link
Member

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",
Copy link
Member

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

@pgunn pgunn merged commit 8350b0c into flatironinstitute:dev Nov 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants