Skip to content

Detector hit ref bug #42

@StackEnjoyer

Description

@StackEnjoyer

Currently, the Detector stores hits by directly referencing the underlying AbstractBeam or AbstractRay type. In Julia, this is equal to reference via a pointer. The issue is that for cases where a beam is retraced onto the detector several times without intending to use empty!, multiple hits are stored which reference the most recent state of the beam, making this use case impossible.

Possible fix: some form of deepcopy when generating an AbstractHit in addition to a testset.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions