Skip to content

Mirror config bug#160

Merged
gr5 merged 2 commits intomasterfrom
mirror_config_bug
Aug 15, 2024
Merged

Mirror config bug#160
gr5 merged 2 commits intomasterfrom
mirror_config_bug

Conversation

@gr5
Copy link
Copy Markdown
Collaborator

@gr5 gr5 commented Aug 15, 2024

There was a bug I had missed in mirror configuration. When reading a json config file back in, if you have
an annulus mirror, it would load the diameter of the inner annulus value 100X too small.

So if the diameter of the mirror was 200mm and the percent of the annulus was 50% it would show 1mm diameter annulus instead of 100mm.

The confusing I think comes from the name of the member variable "m_annularObsPercent" which is really a ratio from 0 to 1 and not a value from 1 to 100.

gr5 added 2 commits August 15, 2024 09:37
read a json mirror config file back in it loads the
obstruction value 100X too small (for annular mirrors).
@gr5 gr5 merged commit dbe5249 into master Aug 15, 2024
@atsju atsju deleted the mirror_config_bug branch August 29, 2024 11:32
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