NREL / OpenOA

This library provides a framework for assessing wind plant performance using operational assessment (OA) methodologies that consume time series data from wind plants. The goal of the project is to provide an open source implementation of common data structures, analysis methods, and utility functions relevant to wind plant OA.
https://openoa.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
194 stars 63 forks source link

Review deprecation warnings in tests and example notebooks #157

Closed jordanperr closed 2 years ago

jordanperr commented 3 years ago

There are several warnings printed out when regression tests are run. We should review warnings like these and update the codebase to use the newest API for our dependencies. Here's an example of one:

test/regression/int_pruf_plant_analysis.py: 2480 warnings
  /Users/jperrsau/opt/anaconda3/envs/openoa-env/lib/python3.8/site-packages/pygam/utils.py:650: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    (x < aug_knots[1:]).astype(np.int)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=============================================== 1 passed, 18399 warnings in 85.43s (0:01:25) ================================================
RHammond2 commented 2 years ago

Closed with #175