removed tidal window ETA test
This commit is contained in:
parent
58a3b735d7
commit
7328bb1650
@ -826,11 +826,13 @@ class ValidationRuleFunctions(ValidationRuleBaseFunctions):
|
|||||||
# a violation is observed, when the time is NOT between start & end
|
# 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)
|
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:
|
#if violation_state:
|
||||||
validation_name = "validation_rule_fct_eta_time_not_in_tidal_window"
|
# validation_name = "validation_rule_fct_eta_time_not_in_tidal_window"
|
||||||
return (StatusFlags.RED, validation_name)
|
# return (StatusFlags.RED, validation_name)
|
||||||
else:
|
#else:
|
||||||
return self.get_no_violation_default_output()
|
|
||||||
|
# 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):
|
def validation_rule_fct_etd_time_not_in_tidal_window(self, shipcall, df_times, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user