Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment manager bug fix #154

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/operators/initialisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from representation.individual import Individual
from representation.latent_tree import latent_tree_random_ind
from representation.tree import Tree
from scripts import GE_LR_parser
from utilities.representation.python_filter import python_filter


Expand Down
3 changes: 2 additions & 1 deletion src/scripts/GE_LR_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from sys import path

path.append("../src")
from pathlib import Path
path.append(str(Path().resolve().parents[0]))

from utilities.algorithm.general import check_python_version

Expand Down
12 changes: 10 additions & 2 deletions src/scripts/experiment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
Copyright (c) 2014 Michael Fenton
Hereby licensed under the GNU GPL v3."""

from posixpath import dirname
from sys import path, executable
path.append("../src")

from os import chdir
from pathlib import Path
path.append(str(Path().resolve().parents[0]))


from utilities.algorithm.general import check_python_version

Expand All @@ -16,7 +21,7 @@
import sys

from algorithm.parameters import params, set_params
from scripts.stats_parser import parse_stats_from_runs
from stats_parser import parse_stats_from_runs


def execute_run(seed):
Expand Down Expand Up @@ -83,6 +88,9 @@ def main():
:return: Nothing.
"""

# Change dir so that ponyge.py file can run when called in excute_run()
chdir("..")

# Setup run parameters.
set_params(sys.argv[1:], create_files=False)

Expand Down