Suite of python packages for multiparticle simulations for particle accelerators.
Documentation is on: https://xsuite.readthedocs.io/en/latest/.
Python package for tracking simulations in particle accelerators on CPU and GPU.
Home Page: https://xsuite.readthedocs.io
License: Apache License 2.0
Suite of python packages for multiparticle simulations for particle accelerators.
Documentation is on: https://xsuite.readthedocs.io/en/latest/.
xtrack/xtrack/particles/particles.py
Lines 1273 to 1278 in 8d7a2e7
The pzeta
calculation should automatically return nan
for particles with state==0
without doing the division by beta0==0
. Current behaviour prints a warning:
Example:
import xtrack as xt
m = xt.ParticlesMonitor(num_particles=2, start_at_turn=0, stop_at_turn=10)
# Reseting monitor data
with m.data._bypass_linked_vars():
for tt, nn in m._ParticlesClass.per_particle_vars:
getattr(m.data, nn)[:] = 0
# Accessing pzeta
m.pzeta
-------------------------------
RuntimeWarning: invalid value encountered in divide
pzeta = self.ptau / self.beta0
When importing anything from xtrack
, the __init__.py
is loaded which loads from xtrack.multiline.multiline
and this module imports xfields
, which is not declared as a dependency and not installed with xtrack
.
A simple fix would be to add xfields
in the dependencies in setup.py
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.