Skip to content

Conversation

@mjprilliman
Copy link
Collaborator

-Updates spectral utility functions to have more flexibility with weather data input
-Add integration function to get integrated components of lights for decomposition normalization calculations

@mjprilliman mjprilliman requested a review from shirubana May 30, 2025 20:14
@mjprilliman mjprilliman self-assigned this May 30, 2025
@shirubana
Copy link
Member

@cdeline could you please help us merge this? :) use kempe's charge code

tz_convert_val=tz_convert_val)

return self.metdata
return self.metdata, metadata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjprilliman - you need to revert this line - other functions are expecting a br.MetObj return here, not a tuple. If you need other raw values from metadata, let's include it in the MetObj, but most of the relevant metadata details should already be included directly accessible in the MetObj. Maybe we can include an additional MetObj attribute like metadata_raw that stores the original raw metadata?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that was an artifact from a previous version of this effort, and now the metadata handling is done in pvdeg and passed to the MetObj. So reverting this is no problem.

metdata=self.metdata, location_name=location_name,
output_folder=output_folder)

def integrated_spectrum(self, spectra_folder):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjprilliman - we should come up with another pytest in test_spectra.py that exercise this integrated_spectrum function. I have one on my local computer that can be added to development once this gets merged...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with merging this into development if you think it's good to go.

@cdeline cdeline mentioned this pull request Nov 3, 2025
12 tasks
Pytest update prior to merge into Dev.
Copy link
Contributor

@cdeline cdeline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @mjprilliman

@cdeline cdeline merged commit 2a3a7f5 into NREL:development Nov 5, 2025
7 checks passed
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.

3 participants