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

16 include diffuse radiation #18

Merged
merged 8 commits into from
Aug 16, 2024
Merged

Conversation

FlorianK13
Copy link
Member

No description provided.

@FlorianK13 FlorianK13 linked an issue Jul 22, 2024 that may be closed by this pull request
@FlorianK13 FlorianK13 marked this pull request as ready for review July 22, 2024 09:28
@FlorianK13 FlorianK13 requested a review from khdlr July 22, 2024 09:28
src/index.ts Outdated
*/

async calculate(
numberSimulations: number = 80,
diffuseIrradianceURL: string | undefined,
pvCellEfficiency: number,
maxYieldPerSquareMeter: number,
Copy link
Member

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) {},
})

Copy link
Member Author

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.

@FlorianK13 FlorianK13 merged commit 3355c5f into main Aug 16, 2024
2 checks passed
@FlorianK13 FlorianK13 deleted the 16-include-diffuse-radiation branch August 16, 2024 06:44
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

Successfully merging this pull request may close these issues.

Include diffuse radiation
2 participants