Pylinac 0.4.0 alpha released

Greetings,
Pylinac 0.4.0 alpha has been released and includes a number of useful modules for the clinical physicists who dabbles in Python. The most recent version adds a picket fence module.

Install pylinac via pip and/or head over to the docs: http://pylinac.readthedocs.org/en/latest/index.html

Happy coding,
James

I’m using Windows 64 with Anaconda. I was able to successfully pip install pylinac, pillow, and pydicom. In a python shell, I could import pylinac, but I get an error when running the starshot demo:

Hi Jay, are you using python 3? Signature is a python 3-only built-in function. Ancona has a 3.4 distribution as well as a 2.7 distribution.

Thanks for the fast reply James, I’m using IPython2.7QT as my console. I know Pylinac is installed because I can get the following info using the help function:

pylinac
Help on package pylinac:

NAME
pylinac

FILE
c:\anaconda\lib\site-packages\pylinac_init_.py

PACKAGE CONTENTS
cbct
core (package)
log_analyzer
starshot
vmat

Maybe this error is just associated with the demo? I’ll try to run another module later today.

Jay

Jay, the issue is not whether pylinac is installed, it’s the python version running it. If you’re using IPython 2.7, it strongly indicates that you are using python 2.7, not 3.x.

You can check what you’re using by doing:

`
from future import print_function
import sys
print(sys.version)

`

You can download the python 3.4 anaconda distribution here. It’s very similar to the 2.7 version, including an IPython console (except it will say IPython (Py 3.4)).

I’ll add a check to pylinac to warn users using python 2.7 in the next release.

Hope you’ll enjoy pylinac once you get it up and running!

James

Oh, I get it. I thought 2.7 was required instead of the other way around. It works great!!!