Skip to content
Snippets Groups Projects
Commit 07f5c4e9 authored by François  LAURENT's avatar François LAURENT
Browse files

Merge branch 'dev' into 'main'

Set of commits to be tagged v0.18.2

Closes #216

See merge request !13
parents 9f7300e5 5dd3b037
No related branches found
No related tags found
1 merge request!13Set of commits to be tagged v0.18.2
Pipeline #135580 passed
name = "TaggingBackends"
uuid = "e551f703-3b82-4335-b341-d497b48d519b"
authors = ["François Laurent", "Institut Pasteur"]
version = "0.18.1"
version = "0.18.2"
[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
......
[tool.poetry]
name = "TaggingBackends"
version = "0.18.1"
version = "0.18.2"
description = "Backbone for LarvaTagger.jl tagging backends"
authors = ["François Laurent"]
......
......@@ -11,22 +11,26 @@ import tempfile
from collections import defaultdict
JULIA_PROJECT = os.environ.get('JULIA_PROJECT', '')
DISABLE_JULIA = os.environ.get('DISABLE_JULIA', '')
try:
from julia import Julia
except:
logging.warning(f"PyCall not found in JULIA_PROJECT={JULIA_PROJECT}; \
if not DISABLE_JULIA:
logging.warning(f"PyCall not found in JULIA_PROJECT={JULIA_PROJECT}; \
please see https://gitlab.pasteur.fr/nyx/TaggingBackends#recommended-installation")
else:
try:
Julia(compiled_modules=False)
except:
logging.warning("Failed to set PyCall with compiled_modules=False")
if not DISABLE_JULIA:
logging.warning("Failed to set PyCall with compiled_modules=False")
try:
from julia import TaggingBackends
from julia import PlanarLarvae
except ImportError:
logging.warning(f"TaggingBackends not found in JULIA_PROJECT={JULIA_PROJECT}; \
except:
if not DISABLE_JULIA:
logging.warning(f"TaggingBackends not found in JULIA_PROJECT={JULIA_PROJECT}; \
please see https://gitlab.pasteur.fr/nyx/TaggingBackends#recommended-installation")
def getlogger(name):
......@@ -213,6 +217,10 @@ Cannot find any Python package in project root directory:
# typically follows:
# UserWarning: CUDA initialization: CUDA unknown error
print(line)
elif line == ' return F.conv2d(input, weight, bias, self.stride,':
# typically follows:
# UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED ...
print(line)
# tensorflow logs
elif 26 < len(line):
# assume line[:26] to be e.g.: 2022-05-17 18:48:15.120981
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment