Compatible with python 2.7?

Wanted to know if I could avoid installing python 3.5.

Thanks,

M

Hi Marc,
Pylinac is not compatible with python 2.x, but is compatible with any 3.x distribution. If you’re already using Anaconda you can create a new python 3 environment without causing changes to your system (even if you don’t have python 3 downloaded). Let me know if you have trouble getting set up.

James

Interesting, I’m creating the new env as we speak. So I assume I’ll just do:
i.e. python3 setup.py install

when it is finished?

Thanks

That or just python (no 3). The thing is you must be “in” that environment first. Once in, then the “python” it points to is your new environment. If you’re on windows you need to use “activate xxxx” where xxxx is your new environment. Now, Windows/Powershell has a known bug with activate. You can use these drop-in replacement scripts. Yes, kind of annoying, but after that you can just use “activate/deactivate” like the conda instructions say. You can tell you’re “in” your environment if there are brackets with your environment name to the left of the command prompt. If for some reason setup.py install doesn’t work you can also try “pip install pylinac” (although make sure you already have numpy/scipy installed: “conda install numpy scipy”). Good luck!

I’ve got it running. Thanks for the help.

Nice library! Is it easy to apply some of your metrics (i.e. To a tiff film image?)

I was going to import tiff and apply a calibration and start analyzing. Do you already have something for this?

Glad it’s up and running!

Thanks for the kind words. I don’t have anything for calibration of images/pixel values. Pylinac mostly deals with EPID images since the format is nice, easy, and fairly standardized =) Exactly what metrics do you mean or are interested in? If you haven’t looked at the documentation yet it’s fairly full. Pylinac, at this point, is a end-to-end solution for analyzing specific tests. You can also use the simpler building blocks it’s written with to do your own analysis. If you’re looking specifically at images and extracting information, you may find this discussion helpful.

As an example for your situation, you could either inherit or contain the FileImage class (which give you loading and manipulation abilities) and add a calibration method. I created a small gist to show what this might look like.

Let me know if this works for you!

James