Documentation regarding how to import Tracker is wrong

Hi,

on the documentation page for the Trackers,
https://pythonhosted.org/FireWorks/tracker_tutorial.html

the code snippet says that you should import Tracker by doing e.g.


from fireworks import Firework, Tracker, ScriptTask, TemplateWriterTask

This fails with an ImportError:

>>> from fireworks import Firework, Tracker, FWorker, Workflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Tracker

Doing
from fireworks.core.firework import Firework, Tracker, FWorker, Workflow
does work.

Is importing from fireworks.core.firework the recommended way of importing Fireworks classes?

Thanks,
Rasmus

Hi Rasmus,

Thanks for the question

You are correct about the import statement being wrong - one of the devs has just pushed a commit to Github so that the import works as intended. The change will also be reflected in the next PyPI release (probably Friday or so)

You can also import from fireworks.core.firework as you wrote.

Best

Anubhav

ยทยทยท

On Friday, November 4, 2016 at 1:42:03 PM UTC-7, Rasmus Karlsson wrote:

Hi,

on the documentation page for the Trackers,
https://pythonhosted.org/FireWorks/tracker_tutorial.html

the code snippet says that you should import Tracker by doing e.g.


from fireworks import Firework, Tracker, ScriptTask, TemplateWriterTask

This fails with an ImportError:

>>> from fireworks import Firework, Tracker, FWorker, Workflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name Tracker

Doing
from fireworks.core.firework import Firework, Tracker, FWorker, Workflow
does work.

Is importing from fireworks.core.firework the recommended way of importing Fireworks classes?

Thanks,
Rasmus