Commit 35252fb891bef10ae8c927487563bbf3923a0086
Committed by
Alain Klotz
Exists in
dev
Update import.
Showing
3 changed files
with
13 additions
and
6 deletions
Show diff stats
privatedev/config/tnc/computer_Dell_Precision5550_snLW2134IRC3.yml
privatedev/plugin/agent/AgentImagesProcessor_tnc_up1.py
1 | +#!/usr/bin/env python3 | ||
2 | +# | ||
3 | +# To launch this agent from the root of Pyros: | ||
4 | +# verify this agent is associated to the computer in the obs config at UNITS/UNIT/AGENTS/AGENT/computer: AKlotzPersoComputer | ||
5 | +# cd /srv/develop/pyros | ||
6 | +# .\PYROS -t new-start -o tnc -fg | ||
7 | +# | ||
8 | +# --------------------------------------------------- | ||
9 | + | ||
1 | import sys | 10 | import sys |
2 | 11 | ||
3 | import os | 12 | import os |
src/core/pyros_django/observation_manager/AgentImagesProcessor.py
@@ -26,9 +26,6 @@ from src.core.pyros_django.agent.Agent import Agent, build_agent, log | @@ -26,9 +26,6 @@ from src.core.pyros_django.agent.Agent import Agent, build_agent, log | ||
26 | import glob | 26 | import glob |
27 | import shutil | 27 | import shutil |
28 | import guitastro | 28 | import guitastro |
29 | -#path = os.path.join(pwd, "vendor/guitastro/src/guitastro") | ||
30 | -#if path not in sys.path: | ||
31 | -# sys.path.append(path) | ||
32 | 29 | ||
33 | class AgentImagesProcessor(Agent): | 30 | class AgentImagesProcessor(Agent): |
34 | 31 | ||
@@ -46,9 +43,10 @@ class AgentImagesProcessor(Agent): | @@ -46,9 +43,10 @@ class AgentImagesProcessor(Agent): | ||
46 | 43 | ||
47 | # Scenario to be executed | 44 | # Scenario to be executed |
48 | # "self do_stop_current_processing" | 45 | # "self do_stop_current_processing" |
46 | + # AgentCmd.CMD_STATUS_CODE.CMD_EXECUTED | ||
49 | TEST_COMMANDS_LIST = [ | 47 | TEST_COMMANDS_LIST = [ |
50 | - ("self do_create_test_images_1", 200, None, CMD_STATUS.CMD_EXECUTED), | ||
51 | - ("self do_exit", 500, "STOPPING", CMD_STATUS.CMD_EXECUTED), | 48 | + ("self do_create_test_images_1", 200, None, "CMD_EXECUTED"), |
49 | + ("self do_exit", 500, "STOPPING", "CMD_EXECUTED"), | ||
52 | ] | 50 | ] |
53 | 51 | ||
54 | ''' | 52 | ''' |