Commit d722ad0417d9c7d43b1b20602015ef7454ceaadd

Authored by Alain Klotz
1 parent c3873996
Exists in dev

Draft of new yaml for fn_contexts.

config/pyros/config_pyros.yml
@@ -4,17 +4,6 @@ general: @@ -4,17 +4,6 @@ general:
4 color_theme: sienna 4 color_theme: sienna
5 nb_element_per_page: 20 5 nb_element_per_page: 20
6 fn_contexts: 6 fn_contexts:
7 - pyros_img_L0:  
8 - root_dir: "data/images/"  
9 - description: "pyros_img_L0"  
10 - extension: ".fit"  
11 - naming: "PyROS.img.1"  
12 - pyros_img_L1:  
13 - root_dir: "data/images/"  
14 - description: "pyros_img_L1"  
15 - extension: ".fits"  
16 - pathnaming: "PyROS.img.1"  
17 -  
18 pyros_seq: 7 pyros_seq:
19 root_dir: "data/sequence/" 8 root_dir: "data/sequence/"
20 description: "pyros_seq" 9 description: "pyros_seq"
privatedev/config/tnc/observatory_tnc.yml
@@ -234,29 +234,36 @@ OBSERVATORY: @@ -234,29 +234,36 @@ OBSERVATORY:
234 name: plc 234 name: plc
235 computer: MainComputer 235 computer: MainComputer
236 path: private/plugin/agent_devices 236 path: private/plugin/agent_devices
  237 +
  238 +
  239 + # ========== debut new
  240 + # ============================================
  241 + # Agents of the channel up1
237 # ============================================ 242 # ============================================
238 - - AGENT_DEVICE:  
239 - name: optic_up1  
240 - computer: MainComputer  
241 - path: ~  
242 - device: Takahashi_Epsilon_180ED_001  
243 - is_real: False  
244 243
245 - AGENT_DEVICE: 244 - AGENT_DEVICE:
246 - name: focuser_up1 245 + name: AD_focuser_up1
247 computer: MainComputer 246 computer: MainComputer
248 path: private/plugin/agent_devices 247 path: private/plugin/agent_devices
249 device: Optec_TFC19740_001 248 device: Optec_TFC19740_001
250 is_real: False 249 is_real: False
251 250
252 - AGENT_DEVICE: 251 - AGENT_DEVICE:
253 - name: camera_up1 252 + name: AD_camera_up1
254 computer: MainComputer 253 computer: MainComputer
255 path: private/plugin/agent_devices 254 path: private/plugin/agent_devices
256 device: FLI_Kepler4040_001 255 device: FLI_Kepler4040_001
257 protocol: private/plugin/agent_devices/camera_protocol.py 256 protocol: private/plugin/agent_devices/camera_protocol.py
258 is_real: False 257 is_real: False
259 258
  259 + # SF11-IPC (for AKz)
  260 + - AGENT:
  261 + name: AgentImagesProcessor_up1_akz
  262 + computer: AKlotzPersoComputer
  263 + protocol: privatedev/plugin/agent/AgentImagesProcessor_tnc_up1.py
  264 +
  265 + # ========== fin new
  266 +
260 # ============================================ 267 # ============================================
261 - AGENT_DEVICE: 268 - AGENT_DEVICE:
262 name: optic_up2 269 name: optic_up2
@@ -353,12 +360,6 @@ OBSERVATORY: @@ -353,12 +360,6 @@ OBSERVATORY:
353 name: AgentImagesProcessor 360 name: AgentImagesProcessor
354 computer: MainComputer 361 computer: MainComputer
355 362
356 - # SF11-IPC (for AKz)  
357 - - AGENT:  
358 - name: AgentImagesProcessor_tnc_up1_akz  
359 - computer: AKlotzPersoComputer  
360 - protocol: privatedev/plugin/agent/AgentImagesProcessor_tnc_up1.py  
361 -  
362 363
363 - AGENT: 364 - AGENT:
364 name: AgentImagesProcessor_tnc_up1_ako 365 name: AgentImagesProcessor_tnc_up1_ako
@@ -494,15 +495,29 @@ OBSERVATORY: @@ -494,15 +495,29 @@ OBSERVATORY:
494 495
495 CHANNELS: 496 CHANNELS:
496 497
  498 + # ========== debut new
497 - CHANNEL: 499 - CHANNEL:
498 name: OpticalChannel_up1 500 name: OpticalChannel_up1
499 symbol: CH1 501 symbol: CH1
500 - COMPONENT_AGENTS:  
501 - - OpticImager: optic_up1  
502 - - DetectorFocuser: focuser_up1  
503 - - DetectorSensor: camera_up1  
504 - - DetectorShutter: camera_up1  
505 - - DetectorTimer: camera_up1 502 + AGENTS:
  503 + AD_camera_up1
  504 + AD_focuser_up1
  505 + A_AgentImagesProcessor_up1_akz
  506 + COMPONENTS:
  507 + Takahashi_Epsilon_180ED_001
  508 + fn_contexts:
  509 + img_L0:
  510 + root_dir: "data/images/"
  511 + description: "pyros_img_L0"
  512 + extension: ".fit"
  513 + naming: "PyROS.img.1"
  514 + img_L1:
  515 + root_dir: "data/images/"
  516 + description: "pyros_img_L1"
  517 + extension: ".fits"
  518 + pathnaming: "PyROS.img.1"
  519 +
  520 + # ========== fin new
506 521
507 - CHANNEL: 522 - CHANNEL:
508 name: OpticalChannel_up2 523 name: OpticalChannel_up2
@@ -60,7 +60,7 @@ AGENTS = { @@ -60,7 +60,7 @@ AGENTS = {
60 "AgentM": "monitoring", 60 "AgentM": "monitoring",
61 "AgentSP": "scientific_programs", 61 "AgentSP": "scientific_programs",
62 "AgentScheduler": "scheduler", 62 "AgentScheduler": "scheduler",
63 - "agentImagesProcessor": "observation_manager", 63 + "AgentImagesProcessor": "observation_manager",
64 "AgentImagesCalibrator": "observation_manager", 64 "AgentImagesCalibrator": "observation_manager",
65 "agentSST": "agent", 65 "agentSST": "agent",
66 "Agent": "agent", 66 "Agent": "agent",
src/core/pyros_django/observation_manager/AgentImagesProcessor.py
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # 2 #
3 # To launch this agent from the root of Pyros: 3 # To launch this agent from the root of Pyros:
4 -# cd /srv/develop/pyros  
5 -# .\PYROS -t start AgentImagesProcessor -o tnc -fg 4 +#
  5 +# Linux console:
  6 +# cd /srv/develop/pyros/docker
  7 +# ./PYROS_DOCKER_START.sh
  8 +#
  9 +# Launch from Power Shell:
  10 +# To go from docker to Powershell: pyros_user@ORION:~/app$ exit (or Ctrl+d)
  11 +# Prompt is now PS ...>
  12 +# cd \srv\develop\pyros
  13 +# .\PYROS -t new-start -o tnc -fg -a AgentImagesProcessor_tmc_up1_akz
  14 +#
  15 +# Launch from docker:
  16 +# To go from Powershell to docker: PS ...> .\PYROS_DOCKER_SHELL
  17 +# Prompt is now pyros_user@ORION:~/app$
  18 +# ./PYROS -t new-start -o tnc -fg -a AgentImagesProcessor_tmc_up1_akz
6 # 19 #
7 # --------------------------------------------------- 20 # ---------------------------------------------------
8 21