-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Here you will be provided additional information around code writing and development in the EMPIR project 17IND12 Met4FoF.
On the following pages, you will find step by step instructions for a quick start working with the project's code and useful links to help you on your way with Git and other mandatory tools for the software development in the project.
We start with the installation of the mandatory tools and then install and configure the recommended tools to work with the code.
The installation of Git for all platforms is very well described here.
The installation of a sophisticated Git GUI can drastically simplify the work with Git. An overview of available software is provided here. We made very good experiences with
- SourceTree
- Gitkraken
- PyCharm Community Edition Git integration.
Later in this step-by-step guide we will use PyCharm to execute the code and work on it, so you might want to try it, although the other two are even more intuitive and actually more powerful.
Once Git is installed, you are ready to create a local copy of the repository and take a first glance at the code.
We need a current Python distribution and in this guide use Miniconda, a slimmed down version of Anaconda, to create a flexible and updateable runtime environment for Python.
There are excellent installation instructions in the official docs.
In case you already have a current Python implementation running you could skip this step.
We then create a virtual environment with Miniconda (alternatively using pip
) to provide the currently needed packages of our project's code.
On the command line we can then execute all parts of the project code and of course, could use any tool we are used to for further development.
To work on the code, we recommend installing the IDE PyCharm Community Edition, because it offers excellent integration of virtual environments (of any kind) and comes with the most advanced coding tools.
(Coming soon: how to install and set up PyCharm)
After the environment has been created a new folder exists in your anaconda installation. To use this environment within PyCharm, the following steps have to be carried out:
- Open the Preferences pane in PyCharm
- In the navigation list on the list, go to "Project: <your_folder_name>"
- In Project Interpreter click on "Show all" in the drop-down menu
- Click the + on the bottom
- Choose the Met4FoF environment
- Back in the main Preferences window, go to Project Structure
- Activate the folders "agentMET4FOF", "Met4FoF-SmartUpUnit" and the folder "PyDynamic" as Source
Now you should be able to run the examples from the sub-modules. Note that PyCharm updates the interpreter index. This can take some time.
Check out our Git glossary to get insights into the Git vocabulary.