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

Descriptive aliases for F(n), D(n), R(n) and ALAG(n) #13

Closed
kylebaron opened this issue Mar 13, 2016 · 3 comments
Closed

Descriptive aliases for F(n), D(n), R(n) and ALAG(n) #13

kylebaron opened this issue Mar 13, 2016 · 3 comments

Comments

@kylebaron
Copy link
Collaborator

For example

$CMT CENT

$MAIN
F_CENT = 0.67;
ALAG_CENT = 0.56;
@vjd
Copy link

vjd commented Mar 13, 2016

This would be really helpful

@kylebaron
Copy link
Collaborator Author

I was talking to Bill Denny about it. It would be more than just a convenience ... could really help prevent mistakes.

We can implement this:

$CMT CENT
$MAIN
F_CENT = 0.67;

Easily. But there would have to be one alias for every compartment x 4 (for D,F,R,and ALAG). Maybe it's not that big of a deal ... but it could start to be big number with the large models.

We can already do this

$CMT CENT
$MAIN
F(N_CENT) = 0.67;

So ... N_CENT is the number of the CENT compartment; that's already in there ... you just have to ask for it. Is isn't quite as clean as the first approach, but seems to be a little more sensible implementation (you could totally use N_CENT for a lot of things).

Either way, I think those leading underscores are getting dropped in the next version ... or at least we will put in extra definitions so that you can use F(1) or _F(1); hopefully the _F(1) will go away with time.

@kylebaron
Copy link
Collaborator Author

I forgot to ask the question:
is F(N_CENT) so clunky that we should be brute forcing it with F_GUT, F_CENT, F_PERIPH, F_RESPONSE, etc... ?

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

No branches or pull requests

2 participants