-
Notifications
You must be signed in to change notification settings - Fork 9
Run PyFCM on the Command Line
PyFCM could be run trough command line. If you are not familiar with working on the command line there are many tutorials online (e.g. www.davidbaumgold.com/tutorials/command-line/). You should be able to navigate directories, and run programs before you go to the next step. You can use your default windows/mac command line or install MSYS2 (GCC 7.x) which provides a command line environment and is more interactive. The below instruction for installing MSYS2 is retrieved from here.
- Download the MSYS2 installer from http://www.msys2.org/ (70 MB) Get the one labeled msys2-x86_64-... unless you know you need the 32-bit version.
- Run the installer.
- All defaults are okay.
- Select 'Run MSYS2' on the final screen, or launch it using the shortcut installed in Start.
- Run the following commands (copy and paste them):
pacman -Syu --noconfirm
- Now close the window (you may need to kill the application).
- Open msys2 again to type more commands.
pacman -Syu --noconfirm
pacman -S --needed --noconfirm git \
man nano vim emacs
- Close the window.
- Important Anytime you want to run the command line you have installed, run it using the MSYS2 MinGW 64-bit shortcut in the Start Menu.
In order to use PyFCM, you must first download the code from GitHub. You will simply be downloading the git repository.
- Go to the GitHub page for PyFCM: https://github.com/payamaminpour/PyFCM
- Click on the button labeled "Clone or download" on the right side of the screen.
- A drop-down menu will appear-- click on "Download ZIP"
- This automatically downloads a compressed version of all of the PyFCM code.
- When the download is complete, open it.
- Once you open the download, you should see a single folder called "PyFCM-master". Drag this folder to your desktop (or where ever you would like to keep PyFCM on your computer.)
- Open the "PyFCM-master",and un-zip the "Codes" folder.
- Open the terminal ("Msys minGW-64 bit" on Windows) and navigate to PyFCM-master
- on the command line type:
cd Codes/
- Navigate to one of the PyFCM available packages (Aggregation_FCMs, Clustering_FCMs, Scenario_Analysis, Sensitivity_Analysis, Uncertainty_Analysis). For example, if you want to do Scenario_Analysis, you have to type:
cd Scenario_Analysis
- to run the package, type:
python Scenario_Analysis.py
Go ahead and ask the questions to get the results