Fix sign issue for horizontal kick angle#84
Conversation
|
It looks good, but the sign convention should be specified in the configuration file, not in the source code. |
|
As it is possible to load several accelerators, that means if the convention is inside the config, both convention can be blended. |
|
I think it's ok for now, but eventually I believe we should pick a convention and stick with it. Then it would be the job of the magnet models in the configurations to have correct conversions. |
|
Yes i would be in favor on fixing one. |
|
But i also think that it is OK for the moment. |
|
Ok, it's fine for me like that. |
pyaml/magnet/hcorrector.py
Outdated
| """ | ||
| Set the kick angle. | ||
| """ | ||
| return self.ange |
There was a problem hiding this comment.
Should this be self.__angle?
pyaml/magnet/vcorrector.py
Outdated
| """ | ||
| Set the kick angle. | ||
| """ | ||
| return self.ange |
There was a problem hiding this comment.
Same here, should this be self.__angle?
|
I'm the king of the typos :D |
|
FYI, i've merged the formatting changes to the main. So, this merge request is broken because of that. There are a few easy merge conflicts to resolve. |
|
Ok I will solve conflicts tomorrow. |
90e457c to
013943f
Compare
|
@gubaidulinvadim |
|
@JeanLucPons , did you fix your issue? When I run locally the pre-commit I had no issue just right now. It only fixed the trailing white spaces for me. And it was only in docs/, tests/ and .github/ folders. Those are maybe not included in the actual pre-commit hook and CI/CD. I'm not sure. Edit: failed ruff CI/CD pipeline from your commits above only has vcorrector.py and hcorrector.py. |
|
@gubaidulinvadim |
|
Strange, maybe docs/ and tests/ folders were excluded when I did the formatting. I cannot see where the issue is. But I had to rerun the formatting (e064bf9) on this same list of files, too. |
This PR solves sign issue for horizontal kick angle convention.
See #82