Skip to content

Commit

Permalink
use multiprocessing instead of parallelpython, even on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ddale committed Dec 18, 2011
1 parent 527eaca commit 58e3f03
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 375 deletions.
48 changes: 25 additions & 23 deletions doc/users/installation.rst
Expand Up @@ -4,19 +4,18 @@ Installation


Praxes depends on a few python packages, most of which can be installed on Praxes depends on a few python packages, most of which can be installed on
Linux using the distribution's package manager, or on Mac OS X with MacPorts. Linux using the distribution's package manager, or on Mac OS X with MacPorts.
Note to windows users: you currently need to install the 32-bit python and Note to windows users: you may need to run .exe installers as administrator by
32-bit package installers, and you may need to run .exe installers as right-clicking on them and choose "run as Administrator"). Check that you have
administrator by right-clicking on them and choose "run as Administrator"). the following installed:
Check that you have the following installed:

#. Python_ (version 2.6.x or 2.7.x. May already be installed on Linux)
#. Python_ (version 2.7) #. Cython_ (version 0.15 or later, only required for Mac OS X and Linux)
#. Cython_ (version 0.13 or later, only required for Mac OS X and Linux) #. NumPy_ (version 1.5.1 or later) [#f1]_
#. NumPy_ (version 1.5.1 or later) #. PyQt4_ (version 4.5.2 or later) [#f2]_
#. PyQt4_ (version 4.5.2 or later) [#f1]_ #. PyMca_ (version 4.4.0 or later) [#f3]_
#. PyMca_ (version 4.4.0 or later, Windows users, please see footnote) [#f2]_ #. matplotlib_ (1.1.0 or later) [#f1]_
#. matplotlib_ (0.98.3 or later) #. h5py_ (2.1.0 or later) [#f1]_, [#f4]_
#. h5py_ (1.3.0 or later) [#f3]_ #. quantities_ (optional, only required by physref package)
#. parallelpython_ (1.6.1 or later, only required for Windows)
#. Praxes_ #. Praxes_


To install Praxes on OS X or Linux, download the source tar.gz file, unpack it, To install Praxes on OS X or Linux, download the source tar.gz file, unpack it,
Expand All @@ -27,25 +26,28 @@ and run the following in the source directory::


.. rubric:: Footnotes .. rubric:: Footnotes


.. [#f1] May require installing Qt_ on Mac, and development tools
.. [#f1] Windows installers for 64-bit Python environments can be found
`here <http://www.lfd.uci.edu/~gohlke/pythonlibs>`_
.. [#f2] May require installing Qt_ on Mac, and development tools
like pyqt4-dev and pyqt4-dev-tools through the package manager on like pyqt4-dev and pyqt4-dev-tools through the package manager on
Linux. Linux.
.. [#f2] Windows users, please install .. [#f3] Mac and linux users please install from source: e.g.
the file that includes the python version in the name: e.g. pymca4.4.1-src.tgz. Windows users should follow the `PythonPackages` link,
PyMca-4.4.0.win32-py2.6.exe. Mac and linux users please install and download the file that includes the platform and python version in the
from source: e.g. pymca4.4.0-src.tgz. name: e.g. PyMca-4.4.1.win-amd64-py2.7.exe.
.. [#f3] May require installing hdf5 on Linux and OS X, and development .. [#f4] May require installing hdf5 on Linux and OS X, and development
libraries like libhdf5-dev if installing with a packager manager on libraries like libhdf5-dev if installing with a packager manager on
some linux distributions. hdf5-1.8.4-patch1 is the recommended version. some linux distributions.
.. _Python: http://www.python.org/ .. _Python: http://www.python.org/download/releases/2.7.2/
.. _Cython: http://pypi.python.org/pypi/Cython .. _Cython: http://pypi.python.org/pypi/Cython
.. _NumPy: http://pypi.python.org/pypi/numpy .. _NumPy: http://pypi.python.org/pypi/numpy
.. _PyQt4: http://pypi.python.org/pypi/PyQt .. _PyQt4: http://pypi.python.org/pypi/PyQt
.. _Qt: http://qt.nokia.com/ .. _Qt: http://qt.nokia.com/
.. _matplotlib: http://pypi.python.org/pypi/matplotlib .. _matplotlib: http://pypi.python.org/pypi/matplotlib
.. _PyMca: http://pypi.python.org/pypi/PyMca .. _PyMca: http://sourceforge.net/projects/pymca/files/pymca/PyMca4.4.1
.. _h5py: http://pypi.python.org/pypi/h5py .. _h5py: http://pypi.python.org/pypi/h5py
.. _quantities: http://pypi.python.org/pypi/quantities
.. _Praxes: http://github.com/praxes/praxes/downloads .. _Praxes: http://github.com/praxes/praxes/downloads
.. _parallelpython: http://www.parallelpython.com
168 changes: 0 additions & 168 deletions praxes/dispatch/pptaskmanager.py

This file was deleted.

11 changes: 5 additions & 6 deletions praxes/fluorescence/mcaanalysiswindow.py
Expand Up @@ -342,10 +342,7 @@ def processComplete(self):
self._results.flush() self._results.flush()


def processData(self): def processData(self):
if sys.platform.startswith('win'): from .mptaskmanager import XfsTaskManager
from .pptaskmanager import XfsTaskManager
else:
from .mptaskmanager import XfsTaskManager


self.setMenuToolsActionsEnabled(False) self.setMenuToolsActionsEnabled(False)


Expand Down Expand Up @@ -411,9 +408,11 @@ def setMenuToolsActionsEnabled(self, enabled=True):


@classmethod @classmethod
def offersService(cls, h5Node): def offersService(cls, h5Node):
return isinstance( if isinstance(
h5Node, (phynx.Entry, phynx.Measurement, phynx.MultiChannelAnalyzer) h5Node, (phynx.Entry, phynx.Measurement, phynx.MultiChannelAnalyzer)
) ):
return len(h5Node.entry.measurement.mcas) > 0
return False




#if __name__ == "__main__": #if __name__ == "__main__":
Expand Down

0 comments on commit 58e3f03

Please sign in to comment.