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

__del__ called on partially constructed ExperimentGrid #44

Open
cancan101 opened this issue Oct 30, 2014 · 1 comment
Open

__del__ called on partially constructed ExperimentGrid #44

cancan101 opened this issue Oct 30, 2014 · 1 comment

Comments

@cancan101
Copy link
Contributor

I think that __del__ is being called on partially constructed ExperimentGrid:

Exception AttributeError: "ExperimentGrid instance has no attribute 'vmap'" in <bound method ExperimentGrid.__del__ of <spearmint.ExperimentGrid.ExperimentGrid instance at 0x7fc5db221710>> ignored
@KristianGFleron
Copy link

I had the same problem on windows.
Seems to be a difference in the read and write mode on linux and windows.

changed write mode from 'w' to 'wb'
and read mode from 'r' to 'rb'
in the ExperimentGrid.py

def _save_jobs(self):
    # Write everything to a temporary file first.
    fh = tempfile.NamedTemporaryFile(mode='wb', delete=False)


def _load_jobs(self):
    fh   = open(self.jobs_pkl, 'rb')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants