pvlib 0.13.0__py3-none-any.whl → 0.13.1a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  """
2
2
  The ``bifacial.pvfactors`` module contains functions for modeling back surface
3
- plane-of-array irradiance using an external implementaton of the pvfactors
3
+ plane-of-array irradiance using an external implementation of the pvfactors
4
4
  model (either ``solarfactors`` or the original ``pvfactors``).
5
5
  """
6
6
 
pvlib/clearsky.py CHANGED
@@ -818,22 +818,31 @@ def detect_clearsky(measured, clearsky, times=None, infer_limits=False,
818
818
  sample_interval, samples_per_window = \
819
819
  tools._get_sample_intervals(times, window_length)
820
820
 
821
- if samples_per_window < 3:
822
- raise ValueError(f"Samples per window of {samples_per_window}"
823
- " found. Each window must contain at least 3 data"
824
- " points."
825
- f" Window length of {window_length} found; increase"
826
- f" window length to {3*sample_interval} or longer.")
827
-
828
821
  # if infer_limits, find threshold values using the sample interval
829
822
  if infer_limits:
830
- window_length, mean_diff, max_diff, lower_line_length, \
831
- upper_line_length, var_diff, slope_dev = \
832
- _clearsky_get_threshold(sample_interval)
823
+ (
824
+ window_length,
825
+ mean_diff,
826
+ max_diff,
827
+ lower_line_length,
828
+ upper_line_length,
829
+ var_diff,
830
+ slope_dev,
831
+ ) = _clearsky_get_threshold(sample_interval)
833
832
 
834
833
  # recalculate samples_per_window using returned window_length
835
- _, samples_per_window = \
836
- tools._get_sample_intervals(times, window_length)
834
+ sample_interval, samples_per_window = tools._get_sample_intervals(
835
+ times, window_length
836
+ )
837
+
838
+ if samples_per_window < 3:
839
+ raise ValueError(
840
+ f"Samples per window of {samples_per_window}"
841
+ " found. Each window must contain at least 3 data"
842
+ " points."
843
+ f" Window length of {window_length} found. Increase"
844
+ f" window length to {3 * sample_interval} or longer."
845
+ )
837
846
 
838
847
  # check that we have enough data to produce a nonempty hankel matrix
839
848
  if len(times) < samples_per_window:
pvlib/inverter.py CHANGED
@@ -114,9 +114,9 @@ def sandia(v_dc, p_dc, inverter):
114
114
  References
115
115
  ----------
116
116
  .. [1] D. King, S. Gonzalez, G. Galbraith, W. Boyson, "Performance Model
117
- for Grid-Connected Photovoltaic Inverters", SAND2007-5036, Sandia
118
- National Laboratories.
119
-
117
+ for Grid-Connected Photovoltaic Inverters", Sandia National
118
+ Laboratories, Albuquerque, N.M., USA, SAND2007-5036, Sept. 2007.
119
+ :doi:`10.2172/920449`
120
120
  .. [2] System Advisor Model web page. https://sam.nrel.gov.
121
121
 
122
122
  See also
@@ -176,11 +176,13 @@ def sandia_multi(v_dc, p_dc, inverter):
176
176
  References
177
177
  ----------
178
178
  .. [1] D. King, S. Gonzalez, G. Galbraith, W. Boyson, "Performance Model
179
- for Grid-Connected Photovoltaic Inverters", SAND2007-5036, Sandia
180
- National Laboratories.
179
+ for Grid-Connected Photovoltaic Inverters", Sandia National
180
+ Laboratories, Albuquerque, N.M., USA, SAND2007-5036, Sept. 2007.
181
+ :doi:`10.2172/920449`
181
182
  .. [2] C. Hansen, J. Johnson, R. Darbali-Zamora, N. Gurule. "Modeling
182
183
  Efficiency Of Inverters With Multiple Inputs", 49th IEEE Photovoltaic
183
184
  Specialist Conference, Philadelphia, PA, USA. June 2022.
185
+ :doi:`10.1109/PVSC48317.2022.9938490`
184
186
 
185
187
  See also
186
188
  --------
@@ -272,6 +274,7 @@ def adr(v_dc, p_dc, inverter, vtol=0.10):
272
274
  .. [1] A. Driesse, "Beyond the Curves: Modeling the Electrical Efficiency
273
275
  of Photovoltaic Inverters", 33rd IEEE Photovoltaic Specialist
274
276
  Conference (PVSC), June 2008
277
+ :doi:`10.1109/PVSC.2008.4922827`
275
278
 
276
279
  See also
277
280
  --------
@@ -487,8 +490,9 @@ def fit_sandia(ac_power, dc_power, dc_voltage, dc_voltage_level, p_ac_0, p_nt):
487
490
  References
488
491
  ----------
489
492
  .. [1] D. King, S. Gonzalez, G. Galbraith, W. Boyson, "Performance Model
490
- for Grid-Connected Photovoltaic Inverters", SAND2007-5036, Sandia
491
- National Laboratories.
493
+ for Grid-Connected Photovoltaic Inverters", Sandia National
494
+ Laboratories, Albuquerque, N.M., USA, SAND2007-5036, Sept. 2007.
495
+ :doi:`10.2172/920449`
492
496
  .. [2] Sandia Inverter Model page, PV Performance Modeling Collaborative
493
497
  https://pvpmc.sandia.gov/modeling-steps/dc-to-ac-conversion/sandia-inverter-model/
494
498
  .. [3] W. Bower, et al., "Performance Test Protocol for Evaluating
pvlib/iotools/__init__.py CHANGED
@@ -39,3 +39,9 @@ from pvlib.iotools.solcast import get_solcast_live # noqa: F401
39
39
  from pvlib.iotools.solcast import get_solcast_historic # noqa: F401
40
40
  from pvlib.iotools.solcast import get_solcast_tmy # noqa: F401
41
41
  from pvlib.iotools.solargis import get_solargis # noqa: F401
42
+ from pvlib.iotools.meteonorm import get_meteonorm_forecast_basic # noqa: F401
43
+ from pvlib.iotools.meteonorm import get_meteonorm_forecast_precision # noqa: F401, E501
44
+ from pvlib.iotools.meteonorm import get_meteonorm_observation_realtime # noqa: F401, E501
45
+ from pvlib.iotools.meteonorm import get_meteonorm_observation_training # noqa: F401, E501
46
+ from pvlib.iotools.meteonorm import get_meteonorm_tmy # noqa: F401
47
+ from pvlib.iotools.nasa_power import get_nasa_power # noqa: F401