diff --git a/docs/examples/snow-detection/snow-mode.py b/docs/examples/snow-detection/snow-mode.py index d7464dde..9f49ff23 100644 --- a/docs/examples/snow-detection/snow-mode.py +++ b/docs/examples/snow-detection/snow-mode.py @@ -126,7 +126,7 @@ data.loc[:, ac_power_cols] = data[ac_power_cols].replace({np.nan: 0, None: 0}) -# %% +# %% # Plot DC voltage for each combiner input relative to inverter nameplate # limits @@ -541,8 +541,7 @@ def wrapper(voltage, current, temp_cell, effective_irradiance, data[inv_cb + ' ' + k] = v -# %% -# Look at transmission for all DC inputs +# %% Look at transmission for all DC inputs transmission_cols = [c for c in data.columns if 'transmission' in c and 'voltage' not in c] @@ -557,8 +556,7 @@ def wrapper(voltage, current, temp_cell, effective_irradiance, ax.legend() plt.show() -# %% -# Look at voltage ratios for all DC inputs +# %% Look at voltage ratios for all DC inputs vratio_cols = [c for c in data.columns if "vmp_ratio" in c] fig, ax = plt.subplots(figsize=(10, 10)) @@ -719,5 +717,3 @@ def wrapper(voltage, current, temp_cell, effective_irradiance, ax.xaxis.set_major_formatter(date_form) ax.set_title('Losses incurred in modes -1, 0, 1, 2, 3', fontsize='xx-large') plt.show() - -# %% diff --git a/pvanalytics/tests/features/test_snow.py b/pvanalytics/tests/features/test_snow.py index 7e51cac1..295578ef 100644 --- a/pvanalytics/tests/features/test_snow.py +++ b/pvanalytics/tests/features/test_snow.py @@ -77,7 +77,7 @@ def test_categorize(): 600, 400, 850]) transmission = np.array([0.5, np.nan, 0.5, 0.9, 0.5, 0.9, 0.9, 0.9, 1, 0, 0.9]) - + min_dcv = 300 max_dcv = 800 threshold_vratio = 0.7