Skip to content
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

CellDistributor has many get cell methods #94

Open
cattabiani opened this issue Feb 25, 2025 · 5 comments
Open

CellDistributor has many get cell methods #94

cattabiani opened this issue Feb 25, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@cattabiani
Copy link
Contributor

cattabiani commented Feb 25, 2025

I find confusing that CellDistributor has these 3 methods:

  • getCell is a wrapper of get_cellref
  • get_cell
  • get_cellref
  • getMEType is a wrapper of get_cell

I think we can find more descriptive names or remove some of them

@WeinaJi about # Methods for compat with hoc suggests:

You may check if they are called by any hoc file, including the *helper.hoc
@cattabiani cattabiani added the enhancement New feature or request label Feb 25, 2025
@cattabiani
Copy link
Contributor Author

cattabiani commented Feb 25, 2025

I just discovered that getCell is a wrapper of get_cellref. Clearly one can go except if they are not used for compatibility reasons...

@mgeplf
Copy link
Collaborator

mgeplf commented Feb 28, 2025

I just discovered that get_cellref isn't called using the current ringtest...

@cattabiani
Copy link
Contributor Author

which ringtest? test_ringcells.py? There are multiple tests that use that simulation_config.json

@WeinaJi
Copy link
Collaborator

WeinaJi commented Feb 28, 2025

get_cellref should the cell hoc object created by the emodel hoc template

self._cellref = EModel(gid, morpho_path, morpho_file, *add_params)

I just discovered that get_cellref isn't called using the current ringtest...

Probably because the reports are disabled. It is called in

cellObj = cell_manager.get_cellref(gid)
and other places in the same file regarding the sections/segments of cells.

@mgeplf
Copy link
Collaborator

mgeplf commented Feb 28, 2025

which ringtest? test_ringcells.py?

Yeah: tox -eunit -- -sv tests/unit/test_ringcells.py

Probably because the reports are disabled.

Ah, can't wait for a unit test w/ reports then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants