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

need a friendly way of getting volume of a region #1151

Closed
ramcdougal opened this issue Apr 9, 2021 · 1 comment · Fixed by #2781
Closed

need a friendly way of getting volume of a region #1151

ramcdougal opened this issue Apr 9, 2021 · 1 comment · Fixed by #2781
Assignees
Labels
enhancement rxd reaction-diffusion

Comments

@ramcdougal
Copy link
Member

If a species sp is on a region my_region, then the volume of the region is

sum(sp.nodes(my_region).volume)

It would be good to have a friendly way of getting the volume directly. I think rxd.Region objects already have a volume method which is perhaps misleading since it doesn't answer this question and is instead intended for internal use only.

@ramcdougal ramcdougal added enhancement rxd reaction-diffusion labels Apr 9, 2021
@ramcdougal ramcdougal self-assigned this May 27, 2023
@ramcdougal
Copy link
Member Author

If we're going to change the semantics of .volume, to make it user facing, version 9.0 would be a good time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement rxd reaction-diffusion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants