Skip to content

Commit

Permalink
Workaround for xsuite/xobjects#137: don't use <64b fields in elements
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlopaciuk committed Jul 11, 2024
1 parent e7ac347 commit b3e0f9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xtrack/beam_elements/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,8 @@ class Sextupole(BeamElement):
'inv_factorial_order': xo.Float64,
'knl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'ksl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'edge_entry_active': xo.Field(xo.UInt8, default=False),
'edge_exit_active': xo.Field(xo.UInt8, default=False),
'edge_entry_active': xo.Field(xo.UInt64, default=False),
'edge_exit_active': xo.Field(xo.UInt64, default=False),
}

_skip_in_to_dict = ['_order', 'inv_factorial_order'] # defined by knl, etc.
Expand Down Expand Up @@ -1091,8 +1091,8 @@ class Octupole(BeamElement):
'inv_factorial_order': xo.Float64,
'knl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'ksl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'edge_entry_active': xo.Field(xo.UInt8, default=False),
'edge_exit_active': xo.Field(xo.UInt8, default=False),
'edge_entry_active': xo.Field(xo.UInt64, default=False),
'edge_exit_active': xo.Field(xo.UInt64, default=False),
}

_skip_in_to_dict = ['_order', 'inv_factorial_order'] # defined by knl, etc.
Expand Down Expand Up @@ -1191,8 +1191,8 @@ class Quadrupole(BeamElement):
'inv_factorial_order': xo.Float64,
'knl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'ksl': xo.Float64[ALLOCATED_MULTIPOLE_ORDER + 1],
'edge_entry_active': xo.Field(xo.UInt8, default=False),
'edge_exit_active': xo.Field(xo.UInt8, default=False),
'edge_entry_active': xo.Field(xo.UInt64, default=False),
'edge_exit_active': xo.Field(xo.UInt64, default=False),
}

_skip_in_to_dict = ['_order', 'inv_factorial_order'] # defined by knl, etc.
Expand Down

0 comments on commit b3e0f9b

Please sign in to comment.