Before you update, take a look at the /releases
, which lists the changes, fixes, and new stuff. Most importantly, it has a section on backwards incompatible changes (i.e., changes which may break your existing code) along with information how to fix it. Of course, we try to avoid introducing such incompatible changes, but sometimes, there's no way around them. If you skip some intermediate version(s) for the update, read also the release notes of those!
How to update depends a little bit on the way you installed TeNPy. Of course, you have always the option to just remove the TeNPy files (possibly with a pip uninstall physics-tenpy
or conda uninstall physics-tenpy
), and to start over with downloading and installing the newest version.
When you installed TeNPy with [conda], you just need to activate the corresponding environment (e.g. conda activate tenpy
) and do a:
conda update physics-tenpy
When you installed TeNPy with [pip], you just need to do a:
pip install --upgrade physics-tenpy
If you used git clone ...
to download the repository, you can update to the newest version using [git]. First, briefly check that you didn't change anything you need to keep with git status
. Then, do a git pull
to download (and possibly merge) the newest commit from the repository.
To summarize, you need to execute the following bash commands in the repository:
# 0) make a backup of the whole folder
git status # check the output whether you modified some files
git pull
bash ./cleanup.sh # (confirm with 'y')
bash ./compile.sh