diff --git a/signac/project.py b/signac/project.py index 65788159c..03f8b4079 100644 --- a/signac/project.py +++ b/signac/project.py @@ -1631,7 +1631,7 @@ def get_job(cls, path=None): project = cls.get_project(os.path.join(job_path, os.pardir)) # Return the matched job id from the found project - return project.open_job(id=job_id) + return Job(project=project, id_=job_id) def __getstate__(self): state = dict(self.__dict__) @@ -1688,7 +1688,7 @@ def __init__(self, project, ids): self._ids_iterator = iter(ids) def __next__(self): - return self._project.open_job(id=next(self._ids_iterator)) + return Job(project=self._project, id_=next(self._ids_iterator)) def __iter__(self): return type(self)(self._project, self._ids)