-
Notifications
You must be signed in to change notification settings - Fork 1
Polish CLASS - drop BMI, update runner, add output metadata #138
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
Conversation
…use real axis extent rather than fixes base/top pressure
… they don't tilt anymore
…output vars; however, app/model hangs on second or third run
Moved docstring of bmi.ts:BmiClass:run() to runClass
sverhoeven
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still works in app, cli and docs.
| ]; | ||
|
|
||
| export type ClassOutput = { | ||
| [K in (typeof outputVariables)[number]["key"]]: number[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea of this is to have ClassOutput type be
type ClassOutput = {
t: number[];
h: number[];
theta: number[];
dtheta: number[];
q: number[];
dq: number[];
dthetav: number[];
we: number[];
ws: number[];
wthetave: number[];
wthetav: number[];
}however it is
type ClassOutput = {
[x: string]: number[];
}I quickly tried to typing outputVariables with as const satisfies readonly OutputVariable[], but that broke things downstream and did not have time to fix all those.
Skip BMI - it unnecessarily complicates things
Use runner from package instead
Update output variables in runner and use the metadata for nicer axis labels etc. in app
merge after #137