Commit b0f0e79c authored by Alexandre Boyer's avatar Alexandre Boyer
Browse files

refactorize implementation code into a implementation directory

parent dda7feb8
Pipeline #123439 passed with stage
in 27 seconds
......@@ -2,7 +2,7 @@ import abc
import logging
import sys
from diva_evaluation_cli.bin.private_src.status.status_factory import StatusFactory
from diva_evaluation_cli.bin.private_src.implementation.status.status_factory import StatusFactory
class ActevCommand():
""" Abstract class that represents an actev command.
......
......@@ -23,7 +23,7 @@ Warning: this file should not be modified: see src/entry_points to add your sour
import logging
from diva_evaluation_cli.bin.commands.actev_command import ActevCommand
from diva_evaluation_cli.bin.private_src.private_entry_points.actev_exec import entry_point
from diva_evaluation_cli.bin.private_src.entry_points.actev_exec import entry_point
class ActevExec(ActevCommand):
......
......@@ -19,8 +19,8 @@ Warning: this file should not be modified: see src/entry_points to add your sour
import logging
from diva_evaluation_cli.bin.commands.actev_command import ActevCommand
from diva_evaluation_cli.bin.private_src.private_entry_points.actev_get_system import entry_point
from diva_evaluation_cli.bin.private_src.get_system.system_types_definition import system_types
from diva_evaluation_cli.bin.private_src.entry_points.actev_get_system import entry_point
from diva_evaluation_cli.bin.private_src.implementation.get_system.system_types_definition import system_types
class ActevGetSystem(ActevCommand):
......
......@@ -11,8 +11,8 @@ Warning: this file should not be modified: see src/entry_points to add your sour
import logging
from diva_evaluation_cli.bin.commands.actev_command import ActevCommand
from diva_evaluation_cli.bin.private_src.private_entry_points.actev_status import entry_point
from diva_evaluation_cli.bin.private_src.status.query_types_definition import query_types
from diva_evaluation_cli.bin.private_src.entry_points.actev_status import entry_point
from diva_evaluation_cli.bin.private_src.implementation.status.query_types_definition import query_types
class ActevStatus(ActevCommand):
......
......@@ -11,7 +11,7 @@ Warning: this file should not be modified: see src/entry_points to add your sour
import logging
from diva_evaluation_cli.bin.commands.actev_command import ActevCommand
from diva_evaluation_cli.bin.private_src.private_entry_points.actev_validate_system import entry_point
from diva_evaluation_cli.bin.private_src.entry_points.actev_validate_system import entry_point
class ActevValidateSystem(ActevCommand):
......
......@@ -8,7 +8,7 @@ CURRENT_DIR=`pwd`
cd "$(dirname "$0")"
# Determine if python is running in a virtual environment
python3 private_src/utils/is_virtual_env.py
python3 private_src/implementation/utils/is_virtual_env.py
EXIT_STATUS=$?
cd "${CURRENT_DIR}"
......
......@@ -17,7 +17,7 @@ def entry_point(file_index, activity_index, chunks, nb_videos_per_chunk,
# go into the right directory to execute the script
path = os.path.dirname(__file__)
script = os.path.join(path, '../exec/exec.sh')
script = os.path.join(path, '../implementation/exec/exec.sh')
script += " " + file_index + \
" " + activity_index + \
" " + chunks + \
......
......@@ -4,7 +4,7 @@ ENTRY POINT
This file should not be modified.
"""
import os
from diva_evaluation_cli.bin.private_src.get_system.system_types_definition import system_types
from diva_evaluation_cli.bin.private_src.implementation.get_system.system_types_definition import system_types
def entry_point(url, system_type, location=None, user=None, password=None, token=None, install_cli=False):
""" Private entry points.
......@@ -30,7 +30,7 @@ def entry_point(url, system_type, location=None, user=None, password=None, token
# go into the right directory to execute the script
path = os.path.dirname(__file__)
script = os.path.join(path, '../get_system/get/' + script)
script = os.path.join(path, '../implementation/get_system/get/' + script)
script += " " + url + \
" " + location + \
" " + user + \
......
......@@ -5,7 +5,7 @@ This file should not be modified.
"""
import os
from diva_evaluation_cli.bin.private_src.status.check_status import check_status
from diva_evaluation_cli.bin.private_src.implementation.status.check_status import check_status
def entry_point(query_type, chunk_id=None):
""" Private entry points.
......
......@@ -4,7 +4,7 @@ ENTRY POINT
This file should not be modified.
"""
import os
from diva_evaluation_cli.bin.private_src.validate_system.validate_system import validate_system
from diva_evaluation_cli.bin.private_src.implementation.validate_system.validate_system import validate_system
def entry_point():
""" Private entry points.
......
{"experiment-cleanup": [{"status": "not defined", "id": 8, "args": null}], "post-process-chunk": [{"status": "not defined", "id": 5, "args": null}], "pre-process-chunk": [{"status": "not defined", "id": 3, "args": null}], "reset-chunk": [{"status": "not defined", "id": 6, "args": null}], "experiment-init": [{"status": "not defined", "id": 2, "args": null}], "merge-chunks": [{"status": "not defined", "id": 7, "args": null}], "process-chunk": [{"status": "not defined", "id": 4, "args": null}], "id": 11, "design-chunks": [{"status": "not defined", "id": 1, "args": null}], "system-setup": [{"status": "not defined", "id": 0, "args": null}, {"status": "start", "id": 10, "args": {}}, {"status": "issue", "id": 11, "args": {}}]}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment