Skip to content

Improve tariff models: seasonal months list, optional fixed charge, d…#167

Merged
AadilLatif merged 1 commit intomainfrom
al/tariff_changes
Mar 26, 2026
Merged

Improve tariff models: seasonal months list, optional fixed charge, d…#167
AadilLatif merged 1 commit intomainfrom
al/tariff_changes

Conversation

@AadilLatif
Copy link
Copy Markdown
Collaborator

@AadilLatif AadilLatif commented Mar 25, 2026

Change Summary

SeasonalTOURates

  • season: Month → months: List[Month] — A single entry can now cover multiple months (e.g., summer = [JUNE, JULY, AUGUST]) instead of requiring one entry per month.
  • Added duplicate-month validator within each entry.

DemandCharge

  • Added months: List[Month] — Demand charges can now be scoped to specific months, enabling seasonal variation (e.g., higher summer demand rates).
  • Added duplicate-month validator within each entry.

FixedCharge

  • amount constraint relaxed: gt=0 → ge=0 — allows $0 fixed charges.

DistributionTariff

  • fixed_charge is now optional: FixedCharge (required) → Optional[FixedCharge] defaulting to None.
  • Added overlapping-month validator across seasonal_tou entries — ensures no month appears in more than one SeasonalTOURates.

Related issue number

Checklist

  • The pull request title is a good summary of the changes.
  • Tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including "please review" to assign reviewers

@AadilLatif AadilLatif requested a review from jesse-dugan March 25, 2026 20:12
@AadilLatif AadilLatif merged commit e4314c9 into main Mar 26, 2026
4 checks passed
@AadilLatif AadilLatif deleted the al/tariff_changes branch March 26, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants