Skip to content
Merged
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
8 changes: 8 additions & 0 deletions ImageD11/cImageD11.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

if os.environ.get("IMAGED11_USE_C2") == "1":
from c2ImageD11 import *
C2_BACKEND = True
else:
try:
from ImageD11._cImageD11 import *
Expand All @@ -22,6 +23,13 @@
print("or:")
print(" python setup.py build_ext --inplace")
raise
C2_BACKEND = False

try:
import c2ImageD11 as _c2
C2_VERSION = getattr(_c2, "__version__", None)
except ImportError:
C2_VERSION = None

# Check for the use of openmp interactions with os.fork and multiprocessing

Expand Down
Loading