Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 5 additions & 4 deletions src/rdkit_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@
import NP_Score
from NP_Score import npscorer

# this is pretty gross, but we need to be able to import utils both when
# running as part of the node/package and when running the test suite
# Relative import first: extensions share a Python gateway's sys.path, so a bare
# `import utils` can bind another extension's top-level utils module. The fallback
# covers the test suite, which runs these modules without package context.
try:
import utils
except ImportError:
from . import utils
except ImportError:
import utils


LOGGER = logging.getLogger(__name__)
Expand Down
9 changes: 5 additions & 4 deletions src/standardizer_parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@
import knime.extension as knext
from rdkit import Chem

# this is pretty gross, but we need to be able to import utils both when
# running as part of the node/package and when running the test suite
# Relative import first: extensions share a Python gateway's sys.path, so a bare
# `import utils` can bind another extension's top-level utils module. The fallback
# covers the test suite, which runs these modules without package context.
try:
import utils
except ImportError:
from . import utils
except ImportError:
import utils


import logging
Expand Down
9 changes: 5 additions & 4 deletions src/stereoisomer_enumeration.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@
import numpy as np
LOGGER = logging.getLogger(__name__)

# this is pretty gross, but we need to be able to import utils both when
# running as part of the node/package and when running the test suite
# Relative import first: extensions share a Python gateway's sys.path, so a bare
# `import utils` can bind another extension's top-level utils module. The fallback
# covers the test suite, which runs these modules without package context.
try:
import utils
except ImportError:
from . import utils
except ImportError:
import utils

@knext.node(
name="Stereoisomer Enumeration",
Expand Down