Commit c5a318385ff7be1811be4c2b306b8eb122b92861
1 parent
7735aaa7
Exists in
dev
modifs AgentImagesProcessor.py pour commandes specifiques
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
src/core/pyros_django/observation_manager/AgentImagesProcessor.py
... | ... | @@ -37,15 +37,16 @@ class AgentImagesProcessor(Agent): |
37 | 37 | |
38 | 38 | # TODO: Redefine valid timeout |
39 | 39 | AGENT_SPECIFIC_COMMANDS = [ |
40 | - ("do_create_test_images_1",60), | |
41 | - ("do_create_test_images_2",60), | |
42 | - ("do_stop_current_processing",60), | |
40 | + ("do_create_test_images_1",60, 0), # self.EXEC_MODE.SEQUENTIAL | |
41 | + ("do_create_test_images_2",60, 0), # self.EXEC_MODE.THREAD | |
42 | + ("do_stop_current_processing",60, 0), # self.EXEC_MODE.PROCESS | |
43 | 43 | ] |
44 | 44 | |
45 | 45 | # Scenario to be executed |
46 | 46 | # "self do_stop_current_processing" |
47 | 47 | TEST_COMMANDS_LIST = [ |
48 | - ("self do_create_test_images_1", 200, None, AgentCmd.CMD_STATUS_CODE.CMD_EXECUTED), | |
48 | + # Format : ("self cmd_name cmd_args", timeout, "expected_result", expected_status), | |
49 | + ("self do_create_test_images_1", 200, '', AgentCmd.CMD_STATUS_CODE.CMD_EXECUTED), | |
49 | 50 | ("self do_exit", 500, "STOPPING", AgentCmd.CMD_STATUS_CODE.CMD_EXECUTED), |
50 | 51 | ] |
51 | 52 | |
... | ... | @@ -209,6 +210,7 @@ class AgentImagesProcessor(Agent): |
209 | 210 | |
210 | 211 | # - Load file in memory |
211 | 212 | log.info("Load the file in memory") |
213 | + #self.set_infos("Load the file in memory") | |
212 | 214 | f = self._ima.genename(self._ima.load(fitsfile)) |
213 | 215 | # log.info(f"f={f}") |
214 | 216 | ... | ... |