Quantcast
Viewing latest article 11
Browse Latest Browse All 98

KNIME node development chemistry types

I’m using Python to develop a KNIME extension, and I’d like to use the KNIME Base Chemistry types. The node development documentation says you can use it like so:

def configure(self, config_context): # no input table
  """ This node creates two tables with two columns each """
  ktype1 = knext.string()
  import knime.types.chemistry as cet # needs the extension `KNIME Base Chemistry Types & Nodes` installed
  ktype2 = cet.SdfValue
  schema1 = knext.Schema([ktype1, ktype2], ["Column with Strings", "Column with Sdf"])
  schema2 = knext.Schema([ktype1, ktype2], ["Another column with Strings", "Another column with Sdf"])
  return schema1, schema2

I see that the knime.types.chemistry package is available in the Python scripting view in KNIME AP itself, but I’m unable to find a package or an API reference outlining this module. Is there somewhere I can find that for the purpose of autocompletions in VS Code, where I’m developing the rest of the extension?

3 posts - 2 participants

Read full topic


Viewing latest article 11
Browse Latest Browse All 98

Trending Articles