helpers.py 280 B

1234567891011
  1. def is_off_to_on(running_status_list: list[float]) -> bool:
  2. flag = False
  3. if running_status_list:
  4. if running_status_list[-1] == 1.0:
  5. for item in running_status_list:
  6. if item == 0.0:
  7. flag = True
  8. return flag