Skip to content

Commit

Permalink
Fix tests and flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
natifridman committed Sep 28, 2023
1 parent 1fe7acb commit 0b72675
Show file tree
Hide file tree
Showing 2 changed files with 1,079 additions and 44 deletions.
3 changes: 3 additions & 0 deletions src/vse_sync_pp/analyzers/pmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@
def is_illegal_transition(current_state, new_state):
return new_state not in STATE_TRANSITION[current_state]


def is_illegal_clock_accuracy(state, clock_accuracy):
return clock_accuracy.upper() != CLOCK_ACCURACY_FOR_CLOCK_CLASS[state].upper()


def is_illegal_offset_scaled_log_variance(state, offset_scaled_log_variance):
return offset_scaled_log_variance.upper() != OFFSET_SCALED_LOG_VARIANCE_FOR_CLOCK_CLASS[state].upper()


def get_named_clock_class_result(clock_class_count):
named_clock_class_count = {STATE_NAMES[k]: v for (k, v) in clock_class_count.items()}
for clock_class in clock_class_count.values():
Expand Down
Loading

0 comments on commit 0b72675

Please sign in to comment.