Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Draft
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
3 changes: 3 additions & 0 deletions pyiron_contrib/generic/coscineIo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io
import warnings

from concurrent.futures import Future
import pyiron_base
from pyiron_base import state, ProjectHDFio
from pyiron_base.interfaces.has_groups import HasGroups
Expand Down Expand Up @@ -220,6 +221,8 @@ def __init__(
self._resource = resource._resource
self._path = resource._path
return
elif isinstance(resource, Future):
self._resource = resource.result(timeout=15)
else:
raise TypeError(f"Unknown resource type {type(resource)}!")

Expand Down