Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORIENTATION BUG - #40

Open
capitanevs opened this issue May 25, 2020 · 3 comments
Open

ORIENTATION BUG - #40

capitanevs opened this issue May 25, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@capitanevs
Copy link
Collaborator

capitanevs commented May 25, 2020

Ok That was hard to find. It is well hidden, serious but (maybe) not difficult.

ISOTROPIC Source +
No elements +
HORIZONTAL or VERTICAL KB and Detector => the best focus is in the right position

ISOTROPIC Source +
HORIZONTAL elements +
VERTICAL KB and Detector => the best focus is in the WRONG position
immagine

ISOTROPIC Source +
HORIZONTAL elements +
HORIZONTAL KB and Detector => the best focus is in the right position
immagine

The bamline layout is the same. BUT the relative differences are not: Notice DeltaZ of kb, it is too long. This means source too far => focal spot shifted at z<0 (orange curve)

Orange curve: the minimum is in the wrong position, others: right position.

immagine

@capitanevs capitanevs added the bug Something isn't working label May 25, 2020
@capitanevs
Copy link
Collaborator Author

So, briefly, we have a problem in

OpticalElement.GeneralDistanceFromParent()

@aljosahafner
Copy link
Collaborator

GeneralDistanceFromParent() calculates distance as SameOrientation=True and Reference=True, meaning that DeltaZ is correctly calculated.

@aljosahafner
Copy link
Collaborator

It is clear what Parent means in code-terms, simply the previous element in the Beamline (as a list). However, it has to be decided once and for all what Parent will mean as a "user" accessible function. This is what GeneralDistanceFromParent is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants