Content originally under pywit moved to xwakes.wit.
pywit is kept as alias of xwakes.wit for backward compatibility.
Add xwakes/wit/materials.json to MANIFEST, so that the file is copied when installing with pip.
Create new setup.py identical to other Xsuite ones.
Dependencies and test dependences checked
pywit folder in the user's home is not created on installation but can be optionally created by running python -c 'import xwakes; xwakes.initialize_pywit_directory(). This is required only for using the IW2D interface. (README file updated accordingly).
Add release.sh script to make releases in PyPI.
Add Apache 2 license file (no change in conditions compared to license file in PyWIT, just a bit more explicit).
Existing CI workflow made compatible with GitHub and is now triggered automatically when a PR is created. This has been tested (tests are passing).
Tests involving IW2D are skipped by pytest when IW2D is not installed.
Only minor modifications to the code itself, namely:
This repository contains the package that was previously hosted at https://gitlab.cern.ch/IRIS/pywit
Changes with respect to original repository:
pywit
moved toxwakes.wit
.pywit
is kept as alias ofxwakes.wit
for backward compatibility.xwakes/wit/materials.json
to MANIFEST, so that the file is copied when installing with pip.setup.py
identical to other Xsuite ones.pywit
folder in the user's home is not created on installation but can be optionally created by runningpython -c 'import xwakes; xwakes.initialize_pywit_directory()
. This is required only for using the IW2D interface. (README file updated accordingly).release.sh
script to make releases in PyPI.numpy.trapz
(deprecated in numpy 2.0) withnumpy.trapezoid
.Prepared by @lgiacome and @giadarol.