Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deepdrivewe/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ class WeightedEnsemble(BaseModel):
description='The target states for the weighted ensemble.',
)
metadata: IterationMetadata = Field(
default=IterationMetadata,
default_factory=IterationMetadata,
description='The metadata for the current iteration.',
)
cur_sims: list[SimMetadata] = Field(
Expand Down Expand Up @@ -527,7 +527,7 @@ def initialize_basis_states(

@property
def iteration(self) -> int:
"""Return the current iteration of the weighted ensemble."""
"""The current iteration of the weighted ensemble (1-indexed)."""
return self.metadata.iteration_id

def advance_iteration(
Expand Down