Skip to content

Xwakes version 0.1.0

Latest
Compare
Choose a tag to compare
@giadarol giadarol released this 21 Jun 12:06

This repository contains the package that was previously hosted at https://gitlab.cern.ch/IRIS/pywit

Changes with respect to original repository:

  • Main package renamed from PyWIT to Xwakes.
  • Package published in PyPI (https://pypi.org/project/xwakes/)
  • 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:
    • Removed dependency on sortednp. See commit.
    • Handled a numpy array access warning. See commit.
    • Make matplotlib optional. See commit.
    • Replace numpy.trapz (deprecated in numpy 2.0) with numpy.trapezoid.

Full Changelog: v0.0.3...v0.1.0