-
Notifications
You must be signed in to change notification settings - Fork 46
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
Define preferred notation of units in models #356
Comments
I'm not sure @heplesser said he wanted to see litterals in front of every unit... E.g. for
|
I honestly do not understand the pattern you are describing. |
What @heplesser and I suggested (and what @Silmathoron propably meant) is that we should always have one single normalization factor (usually In other words, we rather want I think this is all possible with the implementation proposed in #348. The code does just not reflect this convention or at least this is just not used consistently (cf. old and new line 89 of @PTraeder: does this clear up the confusion? |
Yes. Thank you, I can work with that. |
I just want to confirm that @jougs understood me correctly. |
Is there anything left to do with this issue or should we close it? |
@Silmathoron: I don't think so. Thanks for the heads up. |
Since #348 it is possible to write
1 ms
as shorthand for1*ms
.Additionally, predefined variables for each unit have been registered, so that notations like
foo/ms
or1 ms * mV
have become possible.In the case
foo/ms
the factor 1 is implied for the ms unit.@jougs and @heplesser expressed that they would like to see literals in front of every unit.
I have some questions regarding this:
A verbose interpretation of this demand could look like:
1 ms / (1 mV * 1 nS)
vs.ms/(mv*nS)
foo * 1 nS
vs.foo * nS
foo / 1 nS
vs.foo / nS
1 nS * foo
vs.nS * foo
1 nS / foo
vs.nS / foo
I have concerns regarding the legibility of the first case in large expressions.
An alternative could be that we only require one literal per "compound unit", where a compound unit would be a factor in an expression that consists only of units, e.g.:
1 ms/(mV*nS)
Which version, if any, would you prefer?
Are there any other conventions wrt. notation of units that you would like to see?
Also would you like to see some form warning if the conventions we agree upon are breached?
The text was updated successfully, but these errors were encountered: