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

Update to PySAM v5.0 #104

Merged
merged 14 commits into from
Mar 20, 2024
Merged

Update to PySAM v5.0 #104

merged 14 commits into from
Mar 20, 2024

Conversation

mnblonsky
Copy link
Collaborator

@mnblonsky mnblonsky commented Feb 19, 2024

Addresses #1

  • Reference the issue your PR is fixing
  • Assign at least 1 reviewer for your PR
  • Test with run_dwelling.py or other script
  • Update documentation as appropriate
  • Update changelog as appropriate

Sorry, something went wrong.

@mnblonsky mnblonsky requested a review from jmaguire1 February 19, 2024 18:57
@mnblonsky mnblonsky self-assigned this Feb 19, 2024
raise OCHREException('Must specify PV tilt and azimuth, or provide an envelope_model with a roof.')
roofs = [bd.ext_surface for bd in envelope_model.boundaries if 'Roof' in bd.name]
# Use roof closest to south with preference to west (0-45 degrees)
roof_data = pd.DataFrame([[bd.tilt, az] for bd in roofs for az in bd.azimuths], columns=['Tilt', 'Az'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have we checked this would work for a flat roof (say multifamily)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It should work for flat roofs, we should test that. It won't work for units
that have another unit above them. It's also not too hard to just specify the
tilt and azimuth in the dwelling_args.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add some error checking to fail gracefully if there's a unit above? I can put together a couple test files (flat roof, unit above) this afternoon in BEopt if that's helpful here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just added an error. I think some BEopt tests would be good.


# Inverter constraints, if included; if not, assume no limits and 100% efficiency
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rather than 100% efficiency, should we try to pick something that lines up with the SAM defaults for inverter efficiency? Or is inverter efficiency included in the PV inefficiencies so that would be double counting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This note is old, we are using SAM's inverter efficiency value, unless the
user specifies something else

Copy link
Collaborator

@jmaguire1 jmaguire1 left a comment

Choose a reason for hiding this comment

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

Left you a few comments, once we resolve the discussion this is ready to merge. Nice job Michael!

@mnblonsky
Copy link
Collaborator Author

@jmaguire1 can we merge this now? It's ready to go, but we haven't tested with new BEopt cases. I have tested with run_dwelling, and everything seems to be in good shape.

@jmaguire1 jmaguire1 merged commit 3fcef6a into dev Mar 20, 2024
@mnblonsky mnblonsky deleted the pysam-bugs branch April 26, 2024 22:20
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.

None yet

2 participants