-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lighten the import of pyiron_contrib
In the main init, only pyiron_base is imported to update the JOB_CLASS_DICT.
- Loading branch information
1 parent
b764f4c
commit e76722b
Showing
4 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import warnings | ||
|
||
|
||
try: | ||
from pyiron import Project | ||
except: | ||
warnings.warn("pyiron module not found, importing Project from pyiron_base") | ||
from pyiron_base import Project | ||
|
||
from pyiron_contrib.generic.storage_interface_toolkit import StorageInterfaceFactory | ||
Project.register_tools("storage_interface", StorageInterfaceFactory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters