Skip to content

experiment.h: Experiment class member functions return by reference#6

Merged
ndevenish merged 5 commits intodials:mainfrom
yash4karan:experiment_h_methods_return_refs
May 15, 2025
Merged

experiment.h: Experiment class member functions return by reference#6
ndevenish merged 5 commits intodials:mainfrom
yash4karan:experiment_h_methods_return_refs

Conversation

@yash4karan
Copy link
Contributor

The following member functions have been modified to return by reference:

const Goniometer& goniometer() const;
const BeamType& beam() const;
Scan& scan();
const Detector& detector() const;
const Crystal& crystal() const;

Only scan() returns by non-const reference for now, as the underlying scan_ member variable is required to be modifiable by the prediction algorithm.

@ndevenish ndevenish merged commit 7475ba7 into dials:main May 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants