Code Monkey home page Code Monkey logo

Comments (2)

manuelschwarze avatar manuelschwarze commented on September 23, 2024

Thinking in depth about it showed that implementing this as suggested would break backward compatibility of all RDKit calculation nodes. The current settings controlling the behavior are "New column name" (String) and "Replace source column" (bool). The new proposed settings are "Append" (bool) and "New column name" (String).

The following mapping could be done (and NOT be done):

Old: New column name != source column, Remove source column True
New: Append column True, New column name defined (!= source column)
BUT: Source column would remain!!! Bad! => This is the current default main use case and in my opinion a showstopper for the suggested approach

Old: New column name == source column, Remove source column True
New: Append column False (Replaces source column)
Works

Old: New column name != source column, Remove source column False
New: Append column True, New column name defined (!= source column)
Works

Not applicable (invalid):
Old: New column name == source column, Remove source column False
New: Append column True, New column name defined (== source column)

As it would be very confusing for RDKit node users to have suddenly the default use case changed or not supported anymore, two different alternatives come to mind:

  1. Introduce beside Append (bool) and New Column Name also the Remove Source Column (bool) option, which would make only sense if Append = true to generate a new column. => This makes things more complex. Not my favorite.

  2. Keep all settings as they are, but change defaults:

  • New column name: Default will be the same as input column name (determined by auto-guessing as before) (was containing a function specific postfix in the past)
  • Remove source column: Default will be true (was false in the past)
  • Change node logic that keeps result column at the same index as input column if the new column has the same name and the remove source column option is true.
  • Write a note in the node documentation that it will replace the input column at the same index, if new column name is set to the same name as input column name and the remove source column option is enabled
    Old nodes will continue to function as before. New nodes will work as anticipated – no clicks anymore, no renaming if one would like to replace the input column with the result column

I would propose to implement this second alternative, which is fully backward compatible and quite easy to change in the code.

from knime-rdkit.

kienerj avatar kienerj commented on September 23, 2024

Agree. 2. makes sense.

from knime-rdkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.