bmad-sim / bmad-sim/BeamTracking.jl

`ds_step` could be negative if the element length is negative.

Open
#211 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
8
Forks
8
Avg merge
16h 2m
Merged PRs (30d)
6

Description

Right now it is assumed that a negative `ds_step` means that this parameter has not been set. This will be problematic with negative length elements. Possible solutions are to use zero as meaning that `ds_step` has not been set or something like `undef`. Anyone have any comments?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the implementation and uses of ds_step, then read how negative element lengths are represented and how an unset ds_step is detected. The issue does not name files or tests; done requires choosing and applying a sentinel that distinguishes an unset value from a valid negative step, with coverage for negative-length elements.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
hpc
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.