GalIMF

Installing

The GalIMF module is written in Python 3, therefore you need to install Python 3 and the following packages to analyzing and visualize the results:

numpy, scipy, matplotlib.


For users without any experience with Python, we recommend using Anaconda to install Python 3 and all required packages.

For users who already have installed Python 3, we recommend using pip to install all required packages. An instruction can be found here.

For users having both Python 2 and Python 3 installed, you have two "Python" interpreter coexisting in your computer. See this page if it causes any problem.


You can download the GalIMF module version 1.0.x at this page.

Or use a terminal and type in:

git clone https://github.com/Azeret/galIMF.git


Employ GalIMF for your own program

For Python programs

You can download the GalIMF repository and call the galIMF module based on the placement of the repository in your computer.

If the Module directory is in the same directory as your own Python script (this is the case of the presented examples) you will import galIMF as:

import galIMF

If it is in a different directory, it is also possible to call it from its directory using:

import your_directory.galIMF

The third option is to put galIMF into the Python directory structure so that you can easily deploy galIMF for your Python 3 project in any directory all as: import galIMF.

To do that open Python interpreter and run:

import sys
sys.path

This will locate Python libraries on your computer (usually there is something similar to "...\lib\site-packages"). If GalIMF is placed in this directory the galIMF module can be called from the Python script located anywhere simply as:

import galIMF

Then you can treat GalIMF as the same as any other packages.


For non-Python programs

Use a pipeline to first run, e.g., the test_gimf.py. Then read in the output files of GalIMF, e.g., GalIMF_IGIMF.txt for your own program.