[kepler-users] windows paths with ijmacro

Chad Berkley berkley at nceas.ucsb.edu
Fri May 22 10:39:37 PDT 2009


Hi Chris,

This is getting a bit stranger.  The workflow you sent me looked exactly 
the same as the workflow I was using to test this.  However, when I ran 
your workflow, I got the error you described.  When I ran my workflow 
again, it worked fine.

Here's a diff on the two files:

berkley at Slickrock project$ diff ijmacro-chris.xml ijmacro.xml
4,5c4,9
< <entity name="ijmacrol" class="ptolemy.actor.TypedCompositeActor">
<     <property name="_createdBy" 
class="ptolemy.kernel.attributes.VersionAttribute" value="7.2.devel">
---
 > <entity name="ijmacro" class="ptolemy.actor.TypedCompositeActor">
 >     <property name="_createdBy" 
class="ptolemy.kernel.attributes.VersionAttribute" value="8.0.beta">
 >     </property>
 >     <property name="derivedFrom" 
class="org.kepler.moml.NamedObjIdReferralList">
 >     </property>
 >     <property name="entityId" class="org.kepler.moml.NamedObjId" 
value="urn:lsid:gamma.msi.ucsb.edu/OpenAuth/:87:5:1">
51c55
<         <property name="_location" 
class="ptolemy.kernel.util.Location" value="{285, 85}">
---
 >         <property name="_location" 
class="ptolemy.kernel.util.Location" value="{150, 170}">
54c58
<     <property name="_windowProperties" 
class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={521, 
277, 878, 646}, maximized=false}">
---
 >     <property name="_windowProperties" 
class="ptolemy.actor.gui.WindowPropertiesAttribute" value="{bounds={346, 
288, 907, 624}, maximized=false}">
56c60
<     <property name="_vergilSize" 
class="ptolemy.actor.gui.SizeAttribute" value="[600, 484]">
---
 >     <property name="_vergilSize" 
class="ptolemy.actor.gui.SizeAttribute" value="[600, 462]">
60c64
<     <property name="_vergilCenter" 
class="ptolemy.data.expr.ExpertParameter" value="{300.0, 242.0}">
---
 >     <property name="_vergilCenter" 
class="ptolemy.data.expr.ExpertParameter" value="{300.0, 231.0}">
71c75
<         <property name="fileOrURL" 
class="ptolemy.data.expr.FileParameter" 
value="C:\kepler-build\workflows\data\assonet.tif">
---
 >         <property name="fileOrURL" 
class="ptolemy.data.expr.FileParameter" value="C:\Documents and 
Settings\Administrator\Desktop\assonet.tif">
91c95
<         <property name="_location" 
class="ptolemy.kernel.util.Location" value="{175, 225}">
---
 >         <property name="_location" 
class="ptolemy.kernel.util.Location" value="{155, 240}">
berkley at Slickrock project$

The main difference I see is that it looks like you're using an older 
version of ptolemy.  I'm using the newest SVN version.  I'm not sure why 
that would matter, since ijmacro is separate from ptolemy and kepler, 
but it might be worth a shot t update your version of ptII and see if it 
works.

I've attached my workflow so you can try it.

chad



Chris Weed wrote:
> I attached the workflow.
> Chris
> 
> On Wed, May 20, 2009 at 4:37 PM, Chad Berkley <berkley at nceas.ucsb.edu> wrote:
>> Hey Chris,
>>
>> I just tried the tif file in assonet.zip from the link you provided.  It
>> opened correctly for me on Windows.  Here's the output from my console:
>>
>> Administrator at dana /c/project/kepler/build-area
>> $ ant run
>> Buildfile: build.xml
>>
>> compile:
>>  [compile] Compiling ptolemy...
>>  [compile] Compiling core...
>>  [compile] Compiling util...
>>  [compile] Compiling event-state...
>>  [compile] Compiling gui...
>>  [compile] Compiling loader...
>>  [compile] Compiling 1 source file to
>> c:\project\kepler\loader\target\classes
>>  [compile] Note: c:\project\kepler\loader\src\org\kepler\Kepler.java uses
>> unche
>> cked or unsafe operations.
>>  [compile] Note: Recompile with -Xlint:unchecked for details.
>>  [compile] Compiling module-manager...
>>  [compile] Compiling r...
>>
>> run:
>>      [run] C:\project\kepler
>>      [run] Building Kars...
>>      [run] *** Attempting to get ResourceBundle for SVG defaults ***
>>      [run] *** svgRenderingMethod = SVG_BATIK_RENDERING ***
>>      [run] firing IJMacro
>>      [run] name: 'C:\Documents and
>> Settings\Administrator\Desktop\assonet.tif'
>>      [run] name(1): 'C:/Documents and
>> Settings/Administrator/Desktop/assonet.ti
>> f'
>>      [run] 3328 ms. Memory: 56176K Free: 23041K (41%)
>>
>> I'm setting the tif filename in the fileOrURL parameter of the ijmacro macro
>> actor.  Are you setting it some other way?  Could you send me your workflow
>> so I could give it a try?
>>
>> thanks,
>> chad
>>
>>
>> Chris Weed wrote:
>>> Hi Chad,
>>> I tried this again, and it works for version 1.0.0, but not on the
>>> developer build.
>>> I was using tif files from this website:
>>> ftp://eclogite.geo.umass.edu/pub/stategeologist/Archived24KTopoMaps
>>>
>>> Chris
>>>
>>> On Tue, May 19, 2009 at 12:58 PM, Chad Berkley <berkley at nceas.ucsb.edu>
>>> wrote:
>>>> Hi Chris,
>>>>
>>>> I just tried this both on windows xp and osx.  I tried it with a jpg and
>>>> a
>>>> tiff in several different directories (with spaces and without).  It all
>>>> worked fine for me.  The / and \ should be converted by java.  Could you
>>>> send me your tif file and I can try it?  It looks like imagej is
>>>> complaining
>>>> about the file format.  Maybe when you transfer it over to windows from
>>>> linux something is getting corrupted, or else imagej on linux is smarter
>>>> than on windows.  Send me your tiff file and I'll give it a try.
>>>>
>>>> thanks,
>>>> chad
>>>>
>>>>
>>>> Chris Weed wrote:
>>>>> I don't think the ijmacro actor is correctly parsing windows path.
>>>>>
>>>>> I have a workflow with an SDF Director and IJMacro actor.
>>>>>
>>>>> The IJMacro parameter is:
>>>>> C:\kepler-build\workflows\data\lexington\lexington.tif
>>>>>
>>>>> On the command-line it outputs:
>>>>> name: C:\kepler-build\workflows\data\lexington\lexington.tif
>>>>> name(1): C:/kepler-build/workflows/data/lexington/lexington.tif
>>>>> 3034 ms. Memory: 212084K Free: 68410K (32%)
>>>>>
>>>>> I get the error:
>>>>> File is not in TIFF, JPEG, GIF, BMP, DICOM, FITS, PGM,
>>>>> ZIP, LUT, ROI or text format, or it is not found.
>>>>>
>>>>> This seems to work fine on linux, though.
>>>>> Chris
>>>>> _______________________________________________
>>>>> Kepler-users mailing list
>>>>> Kepler-users at kepler-project.org
>>>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ijmacro.xml
Type: text/xml
Size: 17213 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20090522/a2675151/attachment.xml>


More information about the Kepler-users mailing list