From eccd80cc9c16f44cce22cb64aa4b0606849c2974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Nu=C3=B1ez?= Date: Thu, 5 Oct 2023 13:25:58 -0400 Subject: [PATCH] update limit to ns --- src/vse_sync_pp/analyzers/analyzer.py | 4 ++-- src/vse_sync_pp/requirements.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/vse_sync_pp/analyzers/analyzer.py b/src/vse_sync_pp/analyzers/analyzer.py index 7918a2b..78f12cc 100644 --- a/src/vse_sync_pp/analyzers/analyzer.py +++ b/src/vse_sync_pp/analyzers/analyzer.py @@ -454,8 +454,8 @@ class MaxTimeIntervalErrorAnalyzerBase(TimeIntervalErrorAnalyzerBase): """ def __init__(self, config): super().__init__(config) - # required system maximum time interval error output in us - self._accuracy = config.requirement('maximum-time-interval-error-in-locked-mode/us') + # required system maximum time interval error output in ns + self._accuracy = config.requirement('maximum-time-interval-error-in-locked-mode/ns') # limit of inaccuracy at observation point self._limit = config.parameter('maximum-time-interval-error-limit/%') # list of observation windows intervals to calculate MTIE diff --git a/src/vse_sync_pp/requirements.py b/src/vse_sync_pp/requirements.py index 8f8d653..5b33f73 100644 --- a/src/vse_sync_pp/requirements.py +++ b/src/vse_sync_pp/requirements.py @@ -4,9 +4,9 @@ REQUIREMENTS = { 'G.8272/PRTC-A': { - 'maximum-time-interval-error-in-locked-mode/us': { - (None, 273): lambda t: 0.000275 * t + 0.025, - (274, None): lambda t: 0.10 + 'maximum-time-interval-error-in-locked-mode/ns': { + (None, 273): lambda t: 0.275 * t + 25, + (274, 10000): lambda t: 100 }, 'time-deviation-in-locked-mode/ns': { (None, 100): lambda t: 3, @@ -16,9 +16,9 @@ 'time-error-in-locked-mode/ns': 100, }, 'G.8272/PRTC-B': { - 'maximum-time-interval-error-in-locked-mode/us': { - (None, 54.5): lambda t: 0.000275 * t + 0.025, - (54.5, None): lambda t: 0.04 + 'maximum-time-interval-error-in-locked-mode/ns': { + (None, 54.5): lambda t: 0.275 * t + 25, + (54.5, 10000): lambda t: 40 }, 'time-deviation-in-locked-mode/ns': { (None, 100): lambda t: 1,