NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 924 - Jython IJ.run("Duplicate...","new_name") problem with whole stack duplication
Jython IJ.run("Duplicate...","new_name") problem with whole stack duplication
Status: NEW
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Linux
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-08-31 05:05 CDT by Pushkar Paranjpe
Modified: 2014-09-01 12:25 CDT
2 users (show)

See Also:

Description Pushkar Paranjpe 2014-08-31 05:05:21 CDT
Hello!

Problematic statement:
IJ.run("Duplicate...","new_name")

Above statement should duplicate an entire image stack and call it "new_name". Fiji only duplicates the first slice of the stack and ignores the "new_name" parameter.

The corresponding macro statement:
run("Duplicate...","new_name");
does work as intended.

The Jython statement has same problems when run from the interactive Jython Interpreter.

Any help in fixing this bug will be much appreciated.

Cheers!
Pushkar

Information about your version of Java:

  os.arch => amd64
  os.name => Linux
  os.version => 3.13.0-34-generic
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.X11GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => gnome
  file.separator => /

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: /home/pushkar/Programs/Fiji.app/java/linux-amd64/jdk1.6.0_24//jre
  imagej.dir => /home/pushkar/Programs/Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20140827235801)
Fiji: http://fiji.sc/update/ (last check:20140829211003)

Files not up-to-date:
  e1ffca47 (MODIFIED) 20140831132408 jars/ij-1.49g.jar
Comment 1 Wayne Rasband 2014-09-01 12:25:59 CDT
This is not the correct syntax. I get something like this when I duplicate a stack with the recorder (Plugins>Utilities>Record) running in "JavaScript" mode:

   imp = IJ.getImage();
   imp2 = new Duplicator().run(imp);
   imp2.show();