Skip to content

Add GECI sensor parameter fallbacks and update gecis.csv - #73

Open
kruthi-munnangi wants to merge 2 commits into
siplab-gt:masterfrom
spoma3:light-dependence
Open

kruthi-munnangi wants to merge 2 commits into
siplab-gt:masterfrom
spoma3:light-dependence

Conversation

@kruthi-munnangi

Copy link
Copy Markdown

No description provided.

@gitnotebooks

gitnotebooks Bot commented Jul 24, 2026

Copy link
Copy Markdown

Found 10 changed notebooks. Review the changes at https://app.gitnotebooks.com/siplab-gt/cleo/pull/73

@kjohnsen kjohnsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Still a ways to go, but a good start!

Comment thread cleo/ephys/lfp.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

these changes are not from your changes, but rather differences with master branch. Make sure to merge master into this branch to avoid stuff like this

Comment thread cleo/ephys/spiking.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here. your GECI code shouldn't affect any of this ephys code, so it's a red flag that there are changes here. Fix by git merge origin master

Comment thread cleo/imaging/__init__.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's annoying to manually maintain the list of imports as opposed to a star import, but its necessary to make the package user-friendly for IDE auto-completion, etc.
https://share.gemini.google/emE6YjITX02y

Comment thread cleo/imaging/gecis.csv

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make sure names are the way they are in literature (e.g., GCaMP3 instead of gcamp3). There is code that automatically turns those into names that are good for Python/Brian, called in _create_geci_fn()

Comment thread cleo/imaging/gecis.csv

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what is the citation column used for? Why are they all Dana2019? There are at least 3 different papers we could cite here...where the GECI was originally presented, where we get params from, and where we get the excitation spectrum from

def test_light_dependent_geci_is_correct_type():
"""LightDependentGECI should be successfully instantiated with arguments"""
sensor = LightDependentGECI(
name="test_sensor",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's more useful to test the API that we intend for the user, e.g., jgcamp7f(light_dependent=True) rather than manually constructing these objects

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These tests are a good start, but don't test getting meaningful signals out of a simulation. I'd look at test_geci() in test_sensors.py for a test that actually ensures there's a signal. And add the important things we expect, like dFF that depends on the wavelength used, or higher SNR for higher power/lower sampling rate/smaller image.

Comment thread tests/test_registry.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why removed test?

Comment thread pyproject.toml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

again, need to merge

Comment thread run_network_sweep.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

repeat file?

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