File tree 1 file changed +8
-4
lines changed
org.knime.scijava.scripting.node/src/org/knime/scijava/scripting/node
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import org .knime .core .data .DataCell ;
13
13
import org .knime .core .data .DataColumnSpec ;
14
- import org .knime .core .data .DataColumnSpecCreator ;
15
14
import org .knime .core .data .DataRow ;
16
15
import org .knime .core .data .DataTableSpec ;
17
16
import org .knime .core .data .DataType ;
@@ -353,6 +352,7 @@ protected class ScriptingCellFactory extends AbstractContextual
353
352
354
353
@ Parameter
355
354
private OutputAdapterService m_outAdapters ;
355
+
356
356
357
357
@ Parameter
358
358
private ModuleService m_moduleService ;
@@ -373,7 +373,12 @@ protected DataColumnSpec[] createDataColumnSpecs(DataTableSpec inSpec) {
373
373
UniqueNameGenerator nameGen = new UniqueNameGenerator (inSpec );
374
374
375
375
for (final ModuleItem <?> output : m_module .getInfo ().outputs ()) {
376
- @ SuppressWarnings ("unchecked" )
376
+
377
+ // FIXME Hack to supress autogenerated result output
378
+ if (output .getName ().equals ("result" )){
379
+ continue ;
380
+ }
381
+
377
382
final OutputAdapter <?, DataCell > outputAdapter = m_outAdapters
378
383
.getMatchingOutputAdapter (output .getType ());
379
384
final DataType type ;
@@ -528,6 +533,5 @@ public final void finish() {
528
533
public final StreamableOperatorInternals saveInternals () {
529
534
return m_colRearrangerFunction .saveInternals ();
530
535
}
531
- };
532
-
536
+ }
533
537
}
You can’t perform that action at this time.
0 commit comments