Optimiser update - #37
Open
EdoardoGiancarli wants to merge 4 commits into
Open
Conversation
| vignetting: bool = True, | ||
| psfy: bool = True, | ||
| model: Literal["fast", "accurate"] = "fast", | ||
| verbose: bool = True, |
| camera.specs.mask_deltax / camera.upscale_f.x, | ||
| camera.specs.mask_deltay / camera.upscale_f.y, | ||
| ) | ||
| camera_coding_power = 0.85 |
Owner
There was a problem hiding this comment.
does this number depend on the mask? If so it should not be hard coded but either 1. computed from the mask pattern here, 2. red from the mask FITS file
Collaborator
Author
There was a problem hiding this comment.
I agree with the second option, as the coding power is computed from simulations
| @@ -443,7 +438,7 @@ def optimize( | |||
| vignetting: bool = True, | |||
| psfy: bool = True, | |||
| verbose: bool = False, | |||
Owner
There was a problem hiding this comment.
Move verbose to last argument position.
Collaborator
Author
There was a problem hiding this comment.
roger that
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optimiser
Update for the Optimiser used during the IROS procedure to fit the sources (i) camera local-frame position and (ii) counts values.
minimizetocurve_fit(from thescipylib). Also removed the loss metric, since it is computed inside thecurve_fitpipeline;[1] Evangelista et al., "Design and performance of the coded mask for the Lunar Electromagnetic Monitor in X-rays (LEM-X)", in preparation (2025)
Tests
The optimiser tests have been commented, at the moment. They will be updated once we decide the final structure for the optimiser procedure.
Notes
With
curve_fit, the optimisation procedure proved to be less computational expensive wrtminimize:The source position and fluence residues are in the worse case similar to the ones obtained with the
minimizeprocedure.To resume, we improved the optimisation computational cost, while preserving the source parameters fit efficiency.