Commit 2e7dcd98a5d7fe83ceb042e866ac8d4481b2e405
Exists in
dev
Merge branch 'dev' of https://gitlab.irap.omp.eu/epallier/pyros into dev
Showing
3 changed files
with
6 additions
and
4 deletions
Show diff stats
privatedev/config/tnc/device_Takahashi_180ED_sn002.yml renamed to privatedev/config/tnc/device_Takahashi_180ED_sn2A3024.yml
privatedev/config/tnc/observatory_tnc.yml
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: | ... | ... |