Open Sustainable Technology

A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Browse accepted projects | Review proposed projects | Propose new project | Open Issues


A Python library used in photovoltaics.

Last synced: about 10 hours ago
JSON representation

Repository metadata



# photovoltaic

**photovoltaic** is a library of python functions used in photovoltaics. Its preferrable to install the library but the functions are simple enough to include in your code.

Help Index:
Code is at:

## Examples

The best place to start is with the examples at:

There are instructions on how to run the examples completely within the browser and without installing anything.

## Typical usage

import photovoltaic as pv
irradiance = pv.sun.blackbody_spectrum(800)

This would print the blackbody irradiance at 800 nm with the default temperature of 6000 K in W/m2/nm.

## Installation

Installation is via pip from the pypi repositry. From a command propmpt:

pip install photovoltaic

Inside a Jupter notebook use:

!pip install photovoltaic

Some systems use pip3 instead of pip. People recommend using a virtual environment, but I don't find its necessary on MS Windows.

Tha above command should also install the latest scipy and numpy packages. They can also be installed directly with:

pip install numpy

pip install scipy

## Requirements

Known to work under plain vanilla Python 3.6 using the standard IDLE editor with Numpy and Scipy installed. The examples also make use of matplotlib. It should also work with the various Python systems such as Anaconda Jupyter etc.

Anaconda includes a wealth of scientific packagkes and is available at:

Standard Python is at

For the graphs, Matplotlib is needed in addition to the above numpy and scipy packages:

pip install matplotlib

## Other

**f** means **from** in some of the function names. For example:

nmfeV() converts the energy of a photon **from** electron volts to a nm.

This follows the conventions of other python functions such as strfdatetime.

The library is designed to be as simple as possible and an "algorithm that runs". While it is easier to install the whole library, it is also straighforward to cut/paste parts of the code.

There are other python libraries that cover sections of the photovoltaic library in much more detail.

* [pvlib] ( covers insolation and systems modeling.
* [Semiconductors]( relating to solar.

GitHub Events

Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 52
Total Committers: 4
Avg Commits per committer: 13.0
Development Distribution Score (DDS): 0.269

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
trautsned s****n@a****u 38
pvedu 6****u 8
Pedro Reguera Rodriguez p****a@a****u 5
Joe Karas j****s@g****m 1

Committer domains:

Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 1
Total pull requests: 3
Average time to close issues: N/A
Average time to close pull requests: 1 day
Total issue authors: 1
Total pull request authors: 3
Average comments per issue: 3.0
Average comments per pull request: 0.0
Merged pull request: 2
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats:

Top Issue Authors

  • MarcvdSluys (1)

Top Pull Request Authors

  • MarcvdSluys (1)
  • jfkaras (1)
  • PedroRegueraRodriguez (1)

Top Issue Labels

Top Pull Request Labels

Package metadata photovoltaic

Set of commonly used functions in photovoltaics

  • Homepage:
  • Documentation:
  • Licenses: GPLv3
  • Latest release: 0.1.9 (published almost 2 years ago)
  • Last Synced: 2024-02-27T18:00:26.045Z (1 day ago)
  • Versions: 9
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 406 Last month
  • Rankings:
    • Dependent packages count: 7.373%
    • Stargazers count: 9.902%
    • Forks count: 10.201%
    • Average: 12.564%
    • Downloads: 13.113%
    • Dependent repos count: 22.233%
  • Maintainers (2)

Dependencies pypi
  • numpy *
  • scipy *

Score: 11.250157118872751