removed tidal window ETA test

This commit is contained in:
Daniel Schick 2024-04-08 12:45:20 +02:00
parent 58a3b735d7
commit 7328bb1650

View File

@ -826,11 +826,13 @@ class ValidationRuleFunctions(ValidationRuleBaseFunctions):
# a violation is observed, when the time is NOT between start & end
violation_state = not self.time_logic.time_inbetween(query_time=times_agency.eta_berth, start_time=shipcall.tidal_window_from, end_time=shipcall.tidal_window_to)
if violation_state:
validation_name = "validation_rule_fct_eta_time_not_in_tidal_window"
return (StatusFlags.RED, validation_name)
else:
return self.get_no_violation_default_output()
#if violation_state:
# validation_name = "validation_rule_fct_eta_time_not_in_tidal_window"
# return (StatusFlags.RED, validation_name)
#else:
# HACK: temporarily deactivated this rule because we do not show Geeste time reference yet (will be in 1.2)
return self.get_no_violation_default_output()
def validation_rule_fct_etd_time_not_in_tidal_window(self, shipcall, df_times, *args, **kwargs):
"""