Skip to content

Configuration and documentation for getting starting with PVInsight software

License

Notifications You must be signed in to change notification settings

slacgismo/pvinsight-onboarding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pvinsight Onboarding

This document is intended to help new collaborators to the PVInsight project get set up with a Python environment for running PVInsight algorithms. We recommend using miniconda as a package and virtual environment manager.

If you are looking to use solar-data-tools and statistical-clear-sky on your own data sets, you will want to follow the intructions for the pvi-user environment below.

If you are looking to work on or develop the solar-data-tools and statistical-clear-sky packages, you'll want to follow the instructions for the pvi-dev environment.

Steps for both environments:

  1. Make sure that gcc and g++ are installed on your system. For Mac OS we suggest using homebrew to install these two pieces of software. For Ubuntu, you can use apt-get.
  2. Install miniconda: https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
  3. Obtain a Mosek license. Personal-use academic licenses are available for free to people with .edu email addresses here: https://www.mosek.com/products/academic-licenses/
  4. Put license here: ~/mosek/mosek.lic

Create pvi-user environment

This environment grabs the latest published versions of solar-data-tools and statistical-clear-sky from Anaconda, and installs them in an environment with all the necessary support software. This is intended for users of PVInsight software.

  1. Create a new environment from the pvi-user.yaml file included in this repository, by running conda env create -f path/to/pvi-user.yml
  2. Activate the new environment: conda activate pvi-user (“pvi-user” is the name of the environment)
  3. Check that everything is installed and working correctly by running nosetests cvxpy from within the new environment

Create pvi-dev environment

This environment installs all the necessary support software, but does not install solar-data-tools or statistical-clear-sky from Anaconda. Instead, these packages are cloned from GitHub (pre-published coded) and installed as "editable" packages with pip. This allows for local editing and testing of the packages and is intending for developers of PVInsight software. After following these instructions, the developer can make changes in their local solar-data-tools and statistical-clear-sky repositories, and the environment will point to the local version. I highly recommend using this feature along with Jupyter Notebooks and the Jupypter auto-reload magic:

%load_ext autoreload
%autoreload 2

With this setup, changes to the codebase are immediately propagated into the current Notebooks session, eliminating the need to reload data sets while testing new functions.

  1. Clone solar-data-tools and statistical-clear-sky to your local machine
  2. Create a new environment from the pvi-dev.yaml file included in this repository, by running conda env create -f path/to/pvi-dev.yml
  3. Activate the new environment: conda activate pvi-dev (“pvi-dev” is the name of the environment)
  4. Run the following two commands: pip install -e path/to/solar-data-tools and pip install -e path/to/statistical-clear-sky
  5. Check that everything is installed and working correctly by running nosetests cvxpy from within the new environment

Comment on the final test step

You may find that there are a small number of errors. I currently get the following:

Ran 752 tests in 44.747s

FAILED (SKIP=147, errors=1, failures=1)

That is okay. If you get a large number of errors, then something probably went wrong with the installation of CVXPY and associated backend numerical solvers. Please contact us through our issues page, and we will try to get back to you within a week.

About

Configuration and documentation for getting starting with PVInsight software

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published