Commit 2e7dcd98a5d7fe83ceb042e866ac8d4481b2e405

Authored by Alexis Koralewski
2 parents 7769c4d1 9500f306
Exists in dev

Merge branch 'dev' of https://gitlab.irap.omp.eu/epallier/pyros into dev

privatedev/config/tnc/device_Takahashi_180ED_sn002.yml renamed to privatedev/config/tnc/device_Takahashi_180ED_sn2A3024.yml
... ... @@ -5,6 +5,6 @@ schema: schema_device-2.0.yml
5 5 DEVICE:
6 6  
7 7 generic: device_Takahashi_180ED_generic.yml
8   - inventory_label: OPT-TKA-2A3015
9   - sn: SN2A3015
  8 + inventory_label: OPT-TKA-2A3024
  9 + sn: SN2A3024
10 10  
... ...
privatedev/config/tnc/observatory_tnc.yml
... ... @@ -39,7 +39,7 @@ OBSERVATORY:
39 39  
40 40 - DEVICE:
41 41 name: Takahashi_Epsilon_180ED_002
42   - file: device_Takahashi_180ED_sn002.yml
  42 + file: device_Takahashi_180ED_sn2A3024.yml
43 43  
44 44 - DEVICE:
45 45 name: Takahashi_Epsilon_180ED_003
... ...
src/core/pyros_django/observation_manager/AgentImagesProcessor.py
... ... @@ -75,6 +75,7 @@ class AgentImagesProcessor(Agent):
75 75 log.info(f"agent_alias = {agent_alias}")
76 76 # === Get the config object
77 77 self.config = self._oc['config']
  78 + self.pconfig = self._oc['pyros_config']
78 79 # === Get self._path_data_root
79 80 self._path_data_root = self.config.get_agent_path_data_root(agent_alias)
80 81 # === Get self._home of current unit
... ... @@ -146,7 +147,8 @@ class AgentImagesProcessor(Agent):
146 147 =================================================================
147 148 """
148 149 def _create_loadseq_1(self):
149   - main_folder_path = os.environ['PROJECT_ROOT_PATH'] + "data/sequences_pickle"
  150 + self.pconfig.fn.fcontext = "pyros_seq"
  151 + main_folder_path = self.pconfig.fn.rootdir
150 152 nigth_id = ""
151 153 sequences = Sequence.objects.filter(night_id=nigth_id)
152 154 for sequence in sequences:
... ...