Skip to content

Commit

Permalink
fix offline
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhanse committed Apr 17, 2024
1 parent cb67705 commit c0d0a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvanalytics/features/snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def categorize(vmp_ratio, transmission, measured_voltage, modeled_voltage,
# offline if both measurement and model say that voltage is too low.
# if either measured or modeled is above the minimum, then system is
# possibly generating
offline = ~(umin_meas & umin_model)
offline = ~umin_meas & ~umin_model

# vmp_ratio discrimates between states (1,2) and (3,4)
uvr = np.where(vmp_ratio >= threshold_vratio, 3, 1)
Expand Down

0 comments on commit c0d0a3f

Please sign in to comment.