Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r2413e6298b362ada05bed6e59568300c2034e18d -r569753d3ae672f7d00d8c06dcca22d2ef8f0aa0d --- shared/scripts/configuration/utility.py (.../utility.py) (revision 2413e6298b362ada05bed6e59568300c2034e18d) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 569753d3ae672f7d00d8c06dcca22d2ef8f0aa0d) @@ -6,12 +6,12 @@ # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file utils.py + # @author (last) LTTS # @date (last) 15-Jan-2022 # ############################################################################ - import builtins import csv import names @@ -323,8 +323,8 @@ def set_arterial_ranges_min_val(art_low): """ - Method to set the Arterial range maximum value to user expected value - @param art_low - (int) user expected value + Method to set the Arterial range maximum value to user expected value + @param art_low - (int) user expected value """ test.startSection("Set Arterial range minimum value to {}".format(art_low)) arterial_min = squish.waitForObjectExists(names.o_PreTreatmentCreate_rangeRect_RangeRect_Artery) @@ -369,8 +369,8 @@ def set_arterial_ranges_max_val(art_high): """ - Method to set the Arterial range maximum value to user expected value - @param art_high - (int) user expected value + Method to set the Arterial range maximum value to user expected value + @param art_high - (int) user expected value """ test.startSection("Set Arterial range maximum value to {}".format(art_high)) arterial_max = squish.waitForObjectExists(names.o_PreTreatmentCreate_rangeRect_RangeRect_Artery) @@ -415,8 +415,8 @@ def set_venous_ranges_max_val(ven_high): """ - Method to set the Venous range maximum value to user expected value - @param ven_high - (int) user expected value + Method to set the Venous range maximum value to user expected value + @param ven_high - (int) user expected value """ test.startSection("Set Venous range maximum value to {}".format(ven_high)) ven_max = squish.waitForObjectExists(names.o_PreTreatmentCreate_rangeRect_RangeRect_Venous) @@ -462,8 +462,8 @@ #Methods for create custom treatment def set_venous_ranges_min_val(ven_low): """ - Method to set the Venous range maximum value to user expected value - @param ven_low - (int) user expected value + Method to set the Venous range maximum value to user expected value + @param ven_low - (int) user expected value """ test.startSection("set Venous range minimum value to {}".format(ven_low)) ven_min = squish.waitForObjectExists(names.o_PreTreatmentCreate_rangeRect_RangeRect_Venous) @@ -1066,13 +1066,12 @@ except: test.fail("Log file is not created or log file is not created based on standard log naming format.") - def get_epoch_value_consistancy(current_epoch_value, expected_epoch_value): """ This function is verify consistancy of epoch value. @input current_epoch_value (float) - current epoch time - @input expected_epoch_value (str) - epoch time from cloud-sync log. - @return (bool) - True - if expected value is in range. else, return False + @input expected_epoch_value (str) - epoch time from the cloud-sync log. + @return (bool) - True/False """ expected_epoch_value = int(expected_epoch_value) maximum_epoch_value = int(current_epoch_value + 25) @@ -1081,4 +1080,3 @@ if expected_epoch_value > minimum_epoch_value and expected_epoch_value < maximum_epoch_value : return True return False -