Commit 82708a45 authored by FERNANDEZ Iban's avatar FERNANDEZ Iban

Fix bugs about sequences processing after Saclay deployment.

parent 06618eaf
Pipeline #99122 passed with stages
in 2 minutes and 3 seconds
......@@ -206,8 +206,8 @@ class Sequence_Player(threading.Thread):
break
self.valve_position = step[0]
time.sleep(int(step[1]) * 60)
# time.sleep(int(step[1]))
# time.sleep(int(step[1]) * 60)
time.sleep(int(step[1]))
self.number_of_background_sequence_completion = self.number_of_background_sequence_completion + 1
......@@ -228,8 +228,8 @@ class Sequence_Player(threading.Thread):
break
self.valve_position = step[0]
time.sleep(int(step[1]) * 60)
# time.sleep(int(step[1]))
# time.sleep(int(step[1]) * 60)
time.sleep(int(step[1]))
cycles_to_run -= 1
......
......@@ -74,7 +74,7 @@ class Sequences_Manager(threading.Thread):
"""
print("setup_sequences_players: Background sequence")
# Compute sequence_process checksum to check later if the ffile has changed
self.sequence_process_file_checksum = self.compute_file_checksum(self.sequences_process_file_path)
......@@ -115,6 +115,9 @@ class Sequences_Manager(threading.Thread):
# Finally start the sequence player thread
print("setup_sequences_players: Priority sequences")
# Clear the list
self.sequences_players_list.clear()
for priority_sequence in sequences_process_root.iter('priority_sequences'):
......@@ -175,9 +178,10 @@ class Sequences_Manager(threading.Thread):
"Time to activate: ", \
sequence_player.time_to_activate)
def get_the_sequence_player_to_be_listened(self):
# print("get_the_sequence_player_to_be_listened")
"""Choose the sequence to be listen among all of the sequences.
This function choose the sequence to be listening by reading the
......@@ -200,6 +204,7 @@ class Sequences_Manager(threading.Thread):
def execute_the_listened_sequence(self):
# print("execute_the_listened_sequence")
"""Transmitt the commands listened in the listened sequence
This function listen the listened sequence and pays attention to its valve position.
......
......@@ -36,6 +36,7 @@ saveAndRun = () => {
})
let sequences_process = {
date_file_creation: new Date(),
background_sequence: background,
priority_sequences: list
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment