Captest

Latest version: v0.12.1

Safety actively analyzes 619212 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.12.0

Added
- Added a user guide section to the documentation with an overview and bifacial tests section.
- Added verbose kwarg to the DataLoader load method, which prints which files have been loaded
- DataLoader load method has new kwarg print_errors
- DataLoader load method stores list of paths of files that fail to load in failed_to_load attribute
- CapData method to save column_groups dictionary to excel
- Github action to build and publish to PyPI on tags like v* pushed from master

Changed
- Updates to make pvcaptest compatible with pvlib 0.10 and scipy 1.11
- Update to make pvcaptest compatible with bokeh v3.0.0, change `plot_width` and `plot_height` to `width` and `height`
- Make bokeh v3 minimum version
- Drop support for python 3.7
- Drop to_numeric from io.file_reader
- CapData.column_groups is instance of ColumnGroups now when group_columns is a callable
- Changed defaults for the CapData plot method to single column

0.11.2

Added
- Adds CI testing across python 3.7 to 3.11 on OSX, Linux, and Windows using Github actions.

Changed
- Re-organized project root directory to place captest package under a src directory, see PR 83.
- Re-organized the extras for pip installation into optional, test, docs, and all. Updated the installation section of the docs to reflect change.
- Updated installation instructions with links to pandas and conda docs for more information on environments.
- Re-organized installation instructions.
- Changed instructions on creating a conda env for pvcaptest to directly download the env yaml file from the repository rather than the whole repository.
- Clean up RTD configuration, particularly added project directory to PYTHONPATH in the docs build environment, so the docs build against checked out version instead of installed version from conda.
- Updates to documentation to add new modules, remove history section of releases, and remove references to Travis CI.

Fixed
- Cleaned up issues in tests found after re-implementing CI on other platforms.

0.11.1

Added
- Added new dependencies - colorcet, param
- Added openpyxl as an optional dependency
- Loads bokeh as holoviews extension in captest imports so user doesn't need to

Changed
- Removed use of hvplot, replaced with holoviews to avoid adding unnecessary dependency. PR 73.

Fixed
- Typo in the import check of panel

0.11.0

Added
- Added columngroups module with a ColumnGroups class that extends python
dictionaries to include each column group as an attribute and __repr__ is
formatted for easy reading.
- Created the `loc` and `floc` callables for CapData, which allow easier access to columns of the `data` and `data_filtered` attributes, repsectively. Will replace `view` and `rview` method.
- Added `read_json` function to util module.
- Added `read_yaml` function to util module.
- Added the io module with functions to load data and return instances of CapData containing the loaded data.
- Added the ReportingIrradiance class for calculations of a reporting irradiance that is between the 40th and 60th percentile. `ReportingIrradiance.plot` includes a dashboard type view of the selected and possible reporting irradiance values and method to save possible reporting conditions table to csv.
- Added the `spatial_uncert` and `expanded_uncert` methods. Improvements and testing needed.


Changed
- Moved group_columns method, series_type, and type definitions from the capdata module to the columngroups module and changed group_columns from a CapData method to a function that returns a ColumnGroups instance.
- Completely refactored the algorithim to determine the reporting irradiance when `irr_bal` is set to True. Now an instance of the new ReportingIrradiance class is created and used to determine the reporting irradiance.
- Updated the examples to reflect the changes to the API for data loading, column grouping, selection (loc and floc vs view and rview), and balanced reporting irradiance.
- Changed the `scatter_hv` method to be more flexible and not require temperature or wind regression columns.

Removed
- Removed the value checking functionality of the group_columns function. Data quality is outside the scope of the pvcaptest project.
- Removed the `load_data`, `load_das`, and `load_pvsyst` methods from the CapData class. Replaced with io module.

0.10.0

Added
- Added the filter_missing CapData method to remove missing data from specified columns.
By default removes only intervals that contain missing data in the regression variable
columns.
- Added option to filter_irr method to specify using the reporting irradiance in the CapData object as the reference irradiance.
- Added option to the filter_time method to drop the specified time period instead of dropping all other times.
- Added option to filter_clearsky method to keep time periods with unstable irradiance.
- Added new attributes to CapData: removed, kept, filter_counts. The update_summary decorator now stores the
index of points removed, the index of points remaining after each filter, and the number of times any filter has been run for each filter applied.
- Adds new plotting method, scatter_filters, which shows which filtering step removed which time intervals of data in a plot of irradiance vs. power.
- New plotting method, timeseries_filters, which shows which fitlering step removed which time intervals of data in a plot of power vs. time.
- New plotting function, overlay_scatters, that overlays irradiance vs. power scatter plots of the data remaining after the last filtering step of the two CapData objects passed to the function.
- New get_filtering_table method that returns a DataFrame documenting the which time intervals are removed by which filter and which time intervals remain after all filtering.
- Adds the run_test function, which applies the passed list of CapData filtering methods to the CapData object passed.
- Adds the points_summary method, which prints the number of points remaining after all filtering, the length of the test period, the average points remaining after filtering per day, if enough points have been collected, if
more points are needed how many, and how many days left if the rate of points holds.

Changed
- Updated filter_pvsyst method to handle inverter output variables that have underscores
or spaces like 'IL Pmin' and 'IL_Pmin'.
- load_das method no longer drops columns and rows that contain no data
- Format of hover tooltip in plots produced by plot method now includes comma separator for thousands.
- Changes captest to pvcaptest in documentation.
- get_reg_cols method default changed to get and rename the columns defined in the `regression_cols` attribute
rather than expecting regression variables/columns to be identified by the keys 'power', 'poa', 't_amb', and 'w_vel' in the `regression_cols` attribute.

0.9.0

Changed
- Updated clear sky functions which rely on pandas `index.tz_localize` to use nonexistent argument rather than errors argument, which was deprecated in pandas v1.0.
- Made Pandas v1.0 or greater a requirement for pvcaptest.
- Change to test against python v3.7* and v3.8*
- Updated installation instructions.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.