Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eccoope committed May 3, 2024
1 parent 9d8c508 commit 55ceafa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions docs/examples/snow-detection/snow-mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
Expand All @@ -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))
Expand Down Expand Up @@ -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()

# %%
2 changes: 1 addition & 1 deletion pvanalytics/tests/features/test_snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55ceafa

Please sign in to comment.