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

Attempt to fix the deprecation issues... #73

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

GregorBecker
Copy link

@GregorBecker GregorBecker commented Jun 6, 2022

... described by @uvchik in #62.

  • Since the new version of pvlib has made some changes to the data structures of the PV models, I have adapted the respective accesses to the new structure.

  • In addition, the two new parameters "module_type" and "racking_model" were added.
    These have to be set to the old state again on (Problems while running the feedin function #72)

    - module_type = "glass_glass" 
    - racking_module = "open_rack" 
    
  • The new version of pvlib also requires the direct normal irradiation (dni), which was calculated in the test file to reach the assert values again. For this purpose a zenith angle of about 75° was calculated. This seems a bit high for the first of January. Does anyone here have more detailed knowledge and can tell me what I need to change?

  • furthermore I removed the shapely deprecation in open_FRED.py.

  • Files touched: models/pvlib.py, open_FRED.py

  • Before I started my PR, the feedinlib already failed some tests on the Windpower model. This is still the case as I have not looked at the Windpowerlib.

  • After this PR the pvlib Version has to be >= 0.9.0 (dependencies)

- dni in the pvlib test has been calculated so that the old test target is reached.
- I am not quite sure if the chosen dni is not too high.
Point.to_wkt() has been removed from shapely, and therefore must be replaced with Point.wkt.
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.

1 participant