Skip to content

Commit

Permalink
Wibbly: all_matches_to_c helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 22, 2023
1 parent d1105a5 commit 4f0b353
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions vsdeinterlace/wobbly/wibbly.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,21 @@ def to_file(

return out_path

def all_matches_to_c(self) -> None:
"""Sets all matches to C matches."""
if not self.metrics:
raise CustomValueError(
"You must generate metrics before you can write them to a file!", self.all_matches_to_c
)

new_metrics: list[FrameMetric] = []

for metric in self.metrics:
metric.match = "c"
new_metrics.append(metric)

self.metrics = new_metrics

def _to_sections(self, scenechanges: list[int]) -> list[dict[str, Any]]:
sections: list[dict[str, Any]] = []

Expand Down

0 comments on commit 4f0b353

Please sign in to comment.