Skip to content

Instantly share code, notes, and snippets.

"""
An example script to generate random or observation-informed forecasts
for participants of trials using the Solar Forecast Arbiter.
This script is meant to be explored and modified.
A generation script should be run periodically as a cronjob or via
another scheduling mechanism at an appropriate interval that will be
determined by the trial/forecast parameters.
"""
@wholmgren
wholmgren / test_trial_1_random_forecast_upload.py
Created August 6, 2021 15:51 — forked from alorenzo175/test_trial_1_random_forecast_upload.py
Solar Forecast Arbiter Test Trial 1 Script
"""
An example script to generate random forecasts for participants
in the first test trial of the Solar Forecast Arbiter.
This script should be run as cronjob or via another scheduling
mechanism at an appropriate interval that will be determined by
the trial/forecast parameters.
"""
import logging
import sys
@wholmgren
wholmgren / newton_example.pyx
Created February 5, 2018 20:24 — forked from mikofski/newton_example.pyx
cythonized example of scipy.optimized.newton to solve solar-cell for 100,000 different cases
from __future__ import division, print_function, absolute_import
from math import exp, sin
from scipy.optimize.cython_optimize cimport zeros
NUM_OF_IRRAD = 10
IL = [sin(il) + 6.0 for il in range(NUM_OF_IRRAD)]
# governing equations