Skip to content

Commit

Permalink
Miscellaneous doc and module cleanup (#145)
Browse files Browse the repository at this point in the history
* delete placeholder modules

* update README

* make order consistent

* make descriptions consistent

* remove hypothetical modules from index.rst too

* other index.rst updates

* typo

* more placeholder removal

* whatsnew

* fix typo
  • Loading branch information
kandersolar authored Aug 18, 2022
1 parent 5bac346 commit b9b8766
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 33 deletions.
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,30 @@ systems. It provides functions for quality control, filtering, and
feature labeling and other tools supporting the analysis of PV
system-level data.

Documentation is available at
PVAnalytics is available at [PyPI](https://pypi.org/project/pvanalytics/)
and can be installed using `pip`:

pip install pvanalytics

Documentation and example usage is available at
[pvanalytics.readthedocs.io](https://pvanalytics.readthedocs.io).

## Library Overview

The functions provided by PVAnalytics are organized in modules based
on their anticipated use. The structure/organization below is likely
to change as use cases are identified and refined and as package
content evolves. The functions in `quality`, `filtering`, and
`features` will take a series of data and return a series of booleans.
content evolves. The functions in `quality` and
`features` take a series of data and return a series of booleans.
For more detailed descriptions, see our
[API Reference](https://pvanalytics.readthedocs.io/en/stable/api.html).

* `quality` contains submodules for different kinds of data quality
checks.
* `data_shifts` contains quality checks for detecting and
isolating data shifts in PV time series data.
* `irradiance` provides quality checks for irradiance
measurements. This will initially contain an implementation of the
QCRad algorithm, but any other quality tests for irradiance data
should be added here.
measurements.
* `weather` has quality checks for weather data (for example tests
for physically plausible values of temperature, wind speed,
humidity, etc.)
Expand All @@ -36,22 +44,15 @@ content evolves. The functions in `quality`, `filtering`, and
* `time` quality checks related to time (e.g. timestamp spacing)
* `util` general purpose quality functions.

Other quality checks such as detecting timestamp errors will also be
included in `quality`.
* `filtering` as the name implies, contains functions for data
filtering (e.g. day/night or solar position)
* `features` contains submodules with different methods for
identifying and labeling salient features.
* `clipping` functions for labeling inverter clipping.
* `clearsky` functions for identifying periods of clear sky
conditions.
* `daytime` functions for for identifying periods of day and night.
* `orientation` functions for labeling data as corresponding to
a rotating solar tracker or a fixed tilt structure.
* `shading` functions for identifying shadows.
* `system` identification of PV system characteristics from data
(e.g. nameplate power, orientation, azimuth)
* `translate` contains functions for translating data to other
conditions (e.g. IV curve translators, temperature adjustment,
irradiance adjustment)
* `metrics` contains functions for computing PV system-level metrics
* `fitting` contains submodules for different types of models that can
be fit to data (e.g. temperature models)
* `dataclasses` contains classes for normalizing data (e.g. an
`IVCurve` class)
19 changes: 8 additions & 11 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ PVAnalytics
PVAnalytics is a python library that supports analytics for PV
systems. It provides functions for quality control, filtering, and
feature labeling and other tools supporting the analysis of PV
system-level data.
system-level data. It can be used as a standalone analysis package
and as a data cleaning "front end" for other PV analysis packages.

PVAnalytics is free and open source under a
`permissive license <https://github.com/pvlib/pvanalytics/blob/master/LICENSE>`_.
The source code for PVAnalytics is hosted on `github
<https://github.com/pvlib/pvanalytics>`_.

Expand Down Expand Up @@ -40,8 +43,6 @@ library status.
- :py:mod:`quality.util` general purpose quality functions (e.g. simple
range checks).

- :py:mod:`filtering` as the name implies, contains functions for data
filtering.
- :py:mod:`features` contains submodules with different methods for
identifying and labeling salient features.

Expand All @@ -59,15 +60,8 @@ library status.

- :py:mod:`system` identification of PV system characteristics from data
(e.g. nameplate power, tilt, azimuth)
- :py:mod:`translate` contains functions for translating data to other
conditions (e.g. IV curve translators, temperature adjustment,
irradiance adjustment)
- :py:mod:`metrics` contains functions for computing PV system-level metrics
(e.g. performance ratio)
- :py:mod:`fitting` contains submodules for different types of models that can
be fit to data (e.g. temperature models)
- :py:mod:`dataclasses` contains classes for normalizing data (e.g. an
``IVCurve`` class)

Dependencies
------------
Expand All @@ -80,8 +74,11 @@ It supports:
and at minimum the two latest minor versions.
- All minor versions of numpy released in the 24 months prior to the project,
and at minimum the last three minor versions
- The latest release of `PVLib <https://pvlib-python.readthedocs.io>`_.
- The latest release of `pvlib <https://pvlib-python.readthedocs.io>`_.

Additionally, PVAnalytics relies on several other packages in the open
source scientific python ecosystem. For details on dependencies and versions,
see our `setup.py <https://github.com/pvlib/pvanalytics/blob/master/setup.py>`_.

Contents
========
Expand Down
5 changes: 5 additions & 0 deletions docs/whatsnew/0.1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
0.1.2 (TBD)
-------------------------

* Removed empty modules ``pvanalytics.filtering`` and ``pvanalytics.fitting``
until the relevant functionality is added to the package. (:pull:`145`)

Enhancements
~~~~~~~~~~~~
* Detect data shifts in daily summed time series with
Expand Down Expand Up @@ -57,3 +60,5 @@ Contributors
~~~~~~~~~~~~

* Kirsten Perry (:ghuser:`kperrynrel`)
* Cliff Hansen (:ghuser:`cwhanse`)
* Kevin Anderson (:ghuser:`kanderso-nrel`)
2 changes: 0 additions & 2 deletions pvanalytics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from pvanalytics import features # noqa: F401
from pvanalytics import filtering # noqa: F401
from pvanalytics import fitting # noqa: F401
from pvanalytics import metrics # noqa: F401
from pvanalytics import quality # noqa: F401
from pvanalytics import system # noqa: F401
1 change: 0 additions & 1 deletion pvanalytics/filtering.py

This file was deleted.

1 change: 0 additions & 1 deletion pvanalytics/fitting/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion pvanalytics/fitting/temperature.py

This file was deleted.

0 comments on commit b9b8766

Please sign in to comment.