-
Notifications
You must be signed in to change notification settings - Fork 1
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
16 include diffuse radiation #18
Conversation
src/index.ts
Outdated
*/ | ||
|
||
async calculate( | ||
numberSimulations: number = 80, | ||
diffuseIrradianceURL: string | undefined, | ||
pvCellEfficiency: number, | ||
maxYieldPerSquareMeter: 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.
diffuseIrradianceURL
is optional, but pvCellEfficiency
and maxYieldPerSquareMeter
are not. Would it make sense to move the optional argument to the back of the argument list? Or we could switch to a dict of arguments, i.e.
scene.calculate(80, {
diffuseIrradianceURL: 'https://...',
progressCallback: function(i) {},
})
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.
Yes, this dict option seems good.
No description provided.