Skip to content
Snippets Groups Projects
Select Git revision
  • efe5e6127ab3310915da2bdc1dde9f8689f4d1d5
  • master default protected
  • ci39
  • ci39-python12
  • py39
  • issue#14
  • endianness
  • bugs_i686
  • bug_test_instfreqplot_arm64
  • bug_test_tfplot
  • gitlab-ci
  • debian
  • v1.0.17
  • v1.0.16
  • v1.0.15
  • v1.0.14
  • v1.0.13
  • v1.0.12
  • v1.0.9
  • v1.0.8
  • v1.0.7
  • v1.0.6
  • v1.0.0
23 results

copyright.py

Blame
  • execute.py 1.71 KiB
    """This is the execution module, used to execute the code"""
    
    import os
    
    
    def execute(config_path=None):  # pragma: no cover
        from multiview_platform import versions as vs
        vs.test_versions()
        import sys
    
        from multiview_platform.mono_multi_view_classifiers import exec_classif
        if config_path is None:
            exec_classif.exec_classif(sys.argv[1:])
        else:
            if config_path == "example 0":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_0.yml")
            elif config_path == "example 1":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_1.yml")
            elif config_path == "example 2.1.1":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_2_1_1.yml")
            elif config_path == "example 2.1.2":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_2_1_2.yml")
            elif config_path == "example 2.2":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_2_2.yml")
            elif config_path == "example 2.3":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_2_3.yml")
            elif config_path == "example 3":
                config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "examples", "config_files", "config_example_3.yml")
            exec_classif.exec_classif(["--config_path", config_path])
    
    
    if __name__ == "__main__":
        execute()