This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on scipy/optimize/Zeros/brentq.c | |
# modified to python by | |
# William Holmgren william.holmgren@gmail.com @wholmgren | |
# University of Arizona, 2018 | |
# /* Written by Charles Harris charles.harris@sdl.usu.edu */ | |
# | |
# #include <math.h> | |
# #include "zeros.h" | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on scipy/optimize/Zeros/brentq.c | |
# modified to python by | |
# William Holmgren william.holmgren@gmail.com @wholmgren | |
# University of Arizona, 2018 | |
# /* Written by Charles Harris charles.harris@sdl.usu.edu */ | |
# | |
# #include <math.h> | |
# #include "zeros.h" | |
# |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in ModelChain | |
def __init__(..., singlediode_calcparams_model=None) | |
# calls setters | |
self.singlediode_calcparams_model = singlediode_calcparams_model | |
@property | |
def singlediode_calcparams_model(self): | |
return self._singlediode_calcparams_model | |
@singlediode_calcparams_model.setter |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" class="h-100"> | |
<head> | |
<link | |
href="https://cdn.pydata.org/bokeh/release/bokeh-1.1.0.min.css" | |
rel="stylesheet" type="text/css"> | |
<link | |
href="https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.1.0.min.css" | |
rel="stylesheet" type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
from functools import partial | |
from pathlib import Path | |
import pandas as pd | |
from solarforecastarbiter import datamodel | |
from solarforecastarbiter.reference_forecasts import main, models | |
from solarforecastarbiter.io.fetch import nwp as fetch_nwp |