Skip to content

Commit

Permalink
(Issue #264) Refactor: Rename "NormalizedBillingPeriodRecord" to "Pro…
Browse files Browse the repository at this point in the history
…cessedEnergyBill"

Co-authored-by: Ethan Strominger <[email protected]>
  • Loading branch information
stemgene and ethanstrominger committed Nov 27, 2024
1 parent eae5cb0 commit cd09dd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/src/rules_engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
HeatLoadInput,
HeatLoadOutput,
NaturalGasBillingInput,
NormalizedBillingPeriodRecord,
ProcessedEnergyBill,
ProcessedEnergyBillInput,
OilPropaneBillingInput,
RulesEngineResult,
Expand Down Expand Up @@ -138,7 +138,7 @@ def get_outputs_normalized(

billing_records = []
for billing_period in intermediate_billing_periods:
billing_record = NormalizedBillingPeriodRecord(
billing_record = ProcessedEnergyBill(
period_start_date=billing_period.input.period_start_date,
period_end_date=billing_period.input.period_end_date,
usage=billing_period.input.usage,
Expand Down
4 changes: 2 additions & 2 deletions python/src/rules_engine/pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class ProcessedEnergyBillInput(BaseModel):
inclusion_override: bool = Field(frozen=True)


class NormalizedBillingPeriodRecord(ProcessedEnergyBillInput):
class ProcessedEnergyBill(ProcessedEnergyBillInput):
"""
Derived class for holding a normalized billing period record.
Expand Down Expand Up @@ -223,7 +223,7 @@ class BalancePointGraph(BaseModel):
class RulesEngineResult(BaseModel):
heat_load_output: HeatLoadOutput
balance_point_graph: BalancePointGraph
billing_records: list[NormalizedBillingPeriodRecord]
billing_records: list[ProcessedEnergyBill]


@dataclass
Expand Down

0 comments on commit cd09dd5

Please sign in to comment.