Python code used and developed for my cosmology research
The values in Fields correspond to physical coordinates. The boxlen size spans the full cells on both ends, i.e. it begins at the far end of the [0,0,0] cell and ends at the far end of the [gridsize,gridsize,gridsize] cell. Each cell value corresponds to the coordinates at the center of the cell. This means that the coordinates of cell [0,0,0] are [dx/2,dx/2,dx/2] where dx is the linear size of one cell.
This package was developed originally in 2009, so in Python 2.6 and 2.7. I since (mostly) converted it to Python 3, while keeping it Python 2 compatible as much as possible. It can be installed only in Python 3.3 and higher, because it is an implicit namespace package. I give no guarantees about version compatiblity, but am always open to suggestions to make things more compatible. Generally, I just try to use the newest version of Python and adjust this package accordingly when I need it in a new environment.
To install egp, do:
git clone https://github.com/egpbos/egp.git
cd egp
pip install .
Run tests (including coverage) with:
python setup.py test
Some of the classes and functions are well documented. Some are not. I plan on improving this situation soon. Stay tuned.
If you want to contribute to the development of egp, have a look at the contribution guidelines.
Copyright (c) 2009-2019, E. G. Patrick Bos & Rijksuniversiteit Groningen
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This package was created with Cookiecutter and the NLeSC/python-template.