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

Noct taualpha #1233

Merged
merged 11 commits into from
Nov 4, 2024
Merged

Noct taualpha #1233

merged 11 commits into from
Nov 4, 2024

Conversation

mjprilliman
Copy link
Collaborator

-Use Geff_total in NOCT model rather than G_total, remove irradiance scaling of tau*alpha product
-Update tests
-Fixes #917

@mjprilliman mjprilliman added bug pv photovoltaic, pvsam, pvwatts labels Oct 30, 2024
@mjprilliman mjprilliman added this to the SAM Fall 2024 Release milestone Oct 30, 2024
@mjprilliman mjprilliman self-assigned this Oct 30, 2024
@mjprilliman
Copy link
Collaborator Author

Need to discuss with @sjanzou how to update remaining tests, but otherwise should be good to review as is.

Copy link
Collaborator

@janinefreeman janinefreeman left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -1,5 +1,5 @@
{
"solar_resource_file" : "C:/Projects/Github/NREL/working/SAM/deploy/solar_resource/phoenix_az_33.450495_-111.983688_psmv3_60_tmy.csv",
"solar_resource_file" : "C:/Users/mprillim/sam_dev/SAM/deploy/solar_resource/phoenix_az_33.450495_-111.983688_psmv3_60_tmy.csv",
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like this line was specific to Steve's computer before, and is now specific to yours, but flagging in case it should be set to a common file... but I don't think there's an easy way to use environment variables in JSON, is there @sjanzou ? I don't require this to be fixed before merging though.

Copy link
Collaborator

@sjanzou sjanzou Nov 4, 2024

Choose a reason for hiding this comment

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

It looks like this line was specific to Steve's computer before, and is now specific to yours, but flagging in case it should be set to a common file... but I don't think there's an easy way to use environment variables in JSON, is there @sjanzou ? I don't require this to be fixed before merging though.

@janinefreeman , thanks for flagging this - the JSON generated always has the specific test machine path... However, in the test body, the weather file is updated to use
image

the "Test" function, where the weather file is set based on the SSCDIR/test/input_cases/general_data folder as
image

@@ -1,5 +1,5 @@
{
"solar_resource_file" : "C:/Projects/Github/NREL/working/SAM/deploy/solar_resource/phoenix_az_33.450495_-111.983688_psmv3_60_tmy.csv",
"solar_resource_file" : "C:/Users/mprillim/sam_dev/SAM/deploy/solar_resource/phoenix_az_33.450495_-111.983688_psmv3_60_tmy.csv",
Copy link
Collaborator

@janinefreeman janinefreeman Nov 3, 2024

Choose a reason for hiding this comment

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

same comment as the other JSON file (and so on for all the JSONs)

@mjprilliman
Copy link
Collaborator Author

@sjanzou @brtietz is there known variance for ResidentialDCBatteryModelPriceSignalDispatch test across operating systems. I show this test as passing on Windows and Linux but failing on Mac for these temperature model changes. The battery capacity percent variable change on Mac, which I suppose is possible for different values in gen but I'm confused why it wouldn't show up across operating systems.
image

@mjprilliman mjprilliman merged commit 78a58ba into develop Nov 4, 2024
8 checks passed
@mjprilliman mjprilliman deleted the noct-taualpha branch November 4, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pv photovoltaic, pvsam, pvwatts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check NOCT model implementation
3 participants