TrackMate: can not import FastLAPTrackerFactory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TrackMate: can not import FastLAPTrackerFactory

Greg
Hi,

I am stuck because I can not import the FastLAPTrackerFactory within jython. According to this tutorial

http://fiji.sc/Scripting_TrackMate

All I need is to

from fiji.plugin.trackmate.tracking import FastLAPTrackerFactory

but I get a classical import error:

ImportError: cannot import name FastLAPTrackerFactory

When in inspect the module via

print dir(fiji.plugin.trackmate.tracking)

the output is

['LAPUtils', '__name__'] .

So there is almost nothing there ?!

I am running the latest updated Fiji 1.49p on Mac OS 10.10.

Any help appreciated !

Greets,
Greg
Reply | Threaded
Open this post in threaded view
|

Re: TrackMate: can not import FastLAPTrackerFactory

ctrueden
Hi Greg,

> All I need is to
>
> from fiji.plugin.trackmate.tracking import FastLAPTrackerFactory
>
> but I get a classical import error:
>
> ImportError: cannot import name FastLAPTrackerFactory

Looks like that class changed packages [1].

You could try:

  from fiji.plugin.trackmate.tracking.oldlap import FastLAPTrackerFactory

But note the package is now called "oldlap" which implies there is a
newer/better/shinier API now. Hopefully Jean-Yves can clarify that further.

Regards,
Curtis

[1]
https://github.com/fiji/TrackMate/blob/v2.7.2/src/main/java/fiji/plugin/trackmate/tracking/oldlap/FastLAPTrackerFactory.java

On Tue, Mar 10, 2015 at 11:55 AM, Greg <[hidden email]> wrote:

> Hi,
>
> I am stuck because I can not import the FastLAPTrackerFactory within
> jython.
> According to this tutorial
>
> http://fiji.sc/Scripting_TrackMate
>
> All I need is to
>
> from fiji.plugin.trackmate.tracking import FastLAPTrackerFactory
>
> but I get a classical import error:
>
> ImportError: cannot import name FastLAPTrackerFactory
>
> When in inspect the module via
>
> print dir(fiji.plugin.trackmate.tracking)
>
> the output is
>
> ['LAPUtils', '__name__'] .
>
> So there is almost nothing there ?!
>
> I am running the latest updated Fiji 1.49p on Mac OS 10.10.
>
> Any help appreciated !
>
> Greets,
> Greg
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/TrackMate-can-not-import-FastLAPTrackerFactory-tp5011939.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: TrackMate: can not import FastLAPTrackerFactory

Greg
Hi Curtis,

ya I expected some class reorganization..so thx, I will go with your advice for now! As long as the TrackMate Scripting Tutorial is not updated either, I bet I could not do much with the 'newer' API anyways..

Best,
Greg
Reply | Threaded
Open this post in threaded view
|

Re: TrackMate: can not import FastLAPTrackerFactory

Jean-Yves Tinevez
Hi all
I fixed the scripts on the Wiki pages.

Curtis is right: since v2.7.x TrackMate ships a full rewrite of the LAP trackers, and they have been moved and renamed. I also uploaded the 4 scripts to github.
Best
jy