-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
fDOG is distributed as a python package called fdog. It is compatible with Python ≥ v3.13.
RECOMMENDATION: Install fDOG in a fresh conda-like environment to ensure compatibility and prevent conflicts with other packages. We recommend using Mamba or Micromamba instead of Conda for better performance, faster dependency resolution and more reliable environment management.
-
Follow this instruction to install Mamba or Micromamba.
-
Create a new environment
mamba create -n fdog python -y
- Activate the environment
mamba activate fdog
- Install fdog using
pip:
python3 -m pip install fdog
- Install fdog globally (requires admin rights)
python3 -m pip install fdog
- Install fdog for a single user (no admin rights needed)
python3 -m pip install --user fdog
- Add local bin to PATH (if using
--user)
Append this line to the end of your ~/.bashrc or ~/.bash_profile file
export PATH=$HOME/.local/bin:$PATH
Then, reload the current terminal to apply the change (or run source ~/.bashrc)
After installing fdog, you need to setup fdog to get its dependencies and pre-calculated data.
NOTE: in case you haven't installed greedyFAS, it will be installed automatically within fDOG setup. However, you need to run setupFAS after fDOG setup finished before actually using fDOG!
You can setup fDOG by running this command
fdog.setup -d /output/path/for/fdog/data
Pre-calculated data set of fdog will be saved in /output/path/for/fdog/data. The path to this directory will be stored within installed fdog package and is required for many fdog functions.
After the setup run successfully, you can start using fdog. Please make sure to check if you need to run fas.setup first.
You will get a warning if any of the dependencies are not ready to use, please solve those issues and rerun fdog.setup.
For debugging the setup, please create a log file by running the setup as e.g. fdog.setup | tee log.txt and send us that log file, so that we can trouble shoot the issues. Most of the problems can be solved by just re-running the setup.
python3 -m pip install --upgrade fdog
Or
python3 -m pip install --user --upgrade fdog
if you have installed fdog with --user option.
In most of the cases, you don't need to run fdog.setup again. Your old data will still be available.
fdog.remove [--data]
This command will uninstall fdog and all the data or files saved within the installed fdog directory (optional, only when --data option is used).
If you see this warning
WARNING: Skipping fdog as it is not installed.
probably you have multiple versions of Python running on your machine. In this case, you can manually uninstall fdog by using the command
pip uninstall fdog
and delete the installed folder fdog within your Python library directory.