Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

xpart

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xpart - npm Package Compare versions

Comparing version
0.23.1
to
0.23.2
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: xpart
Version: 0.23.1
Version: 0.23.2
Summary: Generation of Particle Ensembles

@@ -5,0 +5,0 @@ Home-page: https://xsuite.readthedocs.io/

@@ -16,6 +16,7 @@ # copyright ############################### #

from xobjects.test_helpers import for_all_test_contexts
from xobjects.test_helpers import fix_random_seed, for_all_test_contexts
@for_all_test_contexts
@fix_random_seed(42343298)
def test_build_particles_binomial(test_context):

@@ -37,10 +38,11 @@ # Build a reference particle

# Built a set of three particles with different x coordinates
zeta, delta, matcher = generate_binomial_longitudinal_coordinates(num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True
)
zeta, delta, matcher = generate_binomial_longitudinal_coordinates(
num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True,
)

@@ -47,0 +49,0 @@ # Test if longitudinal coordinates match with Single

@@ -16,6 +16,7 @@ # copyright ############################### #

from xobjects.test_helpers import for_all_test_contexts
from xobjects.test_helpers import fix_random_seed, for_all_test_contexts
@for_all_test_contexts
@fix_random_seed(78292384)
def test_build_particles_parabolic(test_context):

@@ -37,10 +38,11 @@ # Build a reference particle

# Built a set of three particles with different x coordinates
zeta, delta, matcher = generate_parabolic_longitudinal_coordinates(num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True
)
zeta, delta, matcher = generate_parabolic_longitudinal_coordinates(
num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True,
)

@@ -47,0 +49,0 @@ # Test if longitudinal coordinates match with Single

@@ -16,6 +16,7 @@ # copyright ############################### #

from xobjects.test_helpers import for_all_test_contexts
from xobjects.test_helpers import fix_random_seed, for_all_test_contexts
@for_all_test_contexts
@fix_random_seed(4237638)
def test_build_particles_qgaussian(test_context):

@@ -37,10 +38,11 @@ # Build a reference particle

# Built a set of three particles with different x coordinates
zeta, delta, matcher = generate_qgaussian_longitudinal_coordinates(num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True
)
zeta, delta, matcher = generate_qgaussian_longitudinal_coordinates(
num_particles=num_part,
nemitt_x=3e-6,
nemitt_y=3e-6,
sigma_z=0.05,
particle_ref=p0,
line=line,
return_matcher=True,
)

@@ -47,0 +49,0 @@ # Test if longitudinal coordinates match with Single

Metadata-Version: 2.1
Name: xpart
Version: 0.23.1
Version: 0.23.2
Summary: Generation of Particle Ensembles

@@ -5,0 +5,0 @@ Home-page: https://xsuite.readthedocs.io/

@@ -1,1 +0,1 @@

__version__ = '0.23.1'
__version__ = '0.23.2'

@@ -188,2 +188,4 @@ # copyright ############################### #

if line is not None:
if not line._has_valid_tracker():
line.build_tracker()
if particle_ref is None:

@@ -190,0 +192,0 @@ particle_ref = line.particle_ref

@@ -70,5 +70,4 @@ # copyright ############################### #

if line is not None:
assert line.tracker is not None, ("The line has no tracker. Please use "
"`Line.build_tracker()`")
if line is not None and line.tracker is None:
line.build_tracker()

@@ -75,0 +74,0 @@ if particle_ref is not None and particle_on_co is not None:

@@ -133,3 +133,4 @@ # copyright ############################### #

if line is not None:
assert line.tracker is not None
if not line._has_valid_tracker():
line.build_tracker()

@@ -136,0 +137,0 @@ # kwargs are passed to line.twiss