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

Reader raise a error when reading COPY components. #42

Open
karpenka opened this issue Apr 6, 2022 · 0 comments
Open

Reader raise a error when reading COPY components. #42

karpenka opened this issue Apr 6, 2022 · 0 comments

Comments

@karpenka
Copy link

karpenka commented Apr 6, 2022

Have an instrument which have this kind of code:

COMPONENT COPY(Guide_curved) = COPY(Guide_curved)()
AT (0, 0, 0.5) RELATIVE PREVIOUS
ROTATED (0,rot,0) RELATIVE PREVIOUS

COMPONENT COPY(Guide_curved) = COPY(Guide_curved)()
AT (0, 0, 0.5) RELATIVE PREVIOUS
ROTATED (0,rot,0) RELATIVE PREVIOUS
...

Reader raises error, which he shouldnt:
"NameError: Component name "COPY(Guide_curved)" used twice, McStas does not allow this. Rename or remove one instance of this name."

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

No branches or pull requests

1 participant