Package: alhazen
Alhazen is a small, simple framework to facilitate running
experiments, written in Python, using cognitive models, or similar
applications, in multiple, parallel processes. It is only useful on
multi-core machines, though most modern machines are such; the more
cores, the more performance benefit you are likely to get by using it.
It also depends upon the experiment being structured as a large number
of identical, independent runs of the same activity, or of similar
activities. This is a common pattern, each such run usually
corresponding to a distinct virtual participant, or possibly a
collection of interacting participants.There isonline documentation of Alhazen,
and thesourcesare on Bitbucket.Alhazen requires Python version 3.7 or later. Recent versions of Mac OS X and recent Linux distributions
are likely to have a suitable version of Python pre-installed, but it may need to be invoked aspython3instead of justpython, which latter often runs a 2.x version of Python instead. Use of a virtual environment,
which is recommended, often obviates the need for thepython3/pythondistinction.
If it is not already installed, Python, for Windows, Mac OS X, Linux, or other Unices, can bedownloaded from python.org <http://www.python.org/download/>_, for free.Normally, assuming you are connected to the internet, to install Alhazen you should simply have to type at the command linepip install alhazenDepending upon various possible variations in how Python and your machine are configured
you may have to modify the above in various waysyou may need to ensure your virtual environment is activatedyou may need use an alternative scheme your Python IDE supportsyou may need to call itpip3instead of simplypipyou may need to precede the call topipbysudoyou may need to use some combination of the aboveIf you are unable to install Alhazen as above, you can insteaddownload a tarball <https://bitbucket.org/dfmorrison/alhazen/downloads/?tab=tags>_.
The tarball will have a filename something like alhazen-1.3.4.tar.gz.
Assuming this file is at/some/directory/alhazen-1.3.4.tar.gzinstall it by typing at the command linepip install /some/directory/alhazen-1.3.4.tar.gzAlternatively you can untar the tarball withtar -xf /some/directory/alhazen-1.3.4.tar.gzand then change to the resulting directory and typepython setup.py installAlhazen is released under the following MIT style license:Copyright (c) 2020-2022 Carnegie Mellon UniversityPermission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
conditions:The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.