Skip to content

Checking for PySAM Incompatible API Changes

Darice L Guittet edited this page Sep 6, 2022 · 1 revision

What are PySAM incompatible API changes?

Certain changes to compute modules will cause incompatible API changes for PySAM. This will require a new Major version and will also potentially force users to change their PySAM scripts to handle these new changes if they should update to the new Major version. Therefore, pull requests that will cause these incompatibilities need to be appropriately recorded for documentation and PySAM releasing.

The SSC compute module variable changes that cause incompatible API changes are new required variables, deleted variables and renamed variables. Any code changes within a compute module does not affect the API. Any deleted compute modules will also cause incompatible API changes.

How to check if a Pull Request has them?

You can check your changes in the pull request to see if any of the SSC compute module changes listed above are present.

You can also check the results of the GitHub Actions, which will upload a JSON file of the SSC variable changes. A script is run automatically with every branch. Go to Actions, select a workflow run for your branch, scroll to the Artifact section at the bottom to download "SSC Var & SAM Defaults Diff"