-
Notifications
You must be signed in to change notification settings - Fork 4
General instrument #136
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
base: main
Are you sure you want to change the base?
General instrument #136
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,11 +131,13 @@ def preprocess(self, input_map: ProcessableMap) -> ProcessableMap: | |||||||||||||
| rho, kappa = matched_filter_depth1_map( | ||||||||||||||
| imap=input_map.intensity * input_map.intensity_units.to(u.K), | ||||||||||||||
| ivarmap=input_map.inverse_variance / input_map.intensity_units.to(u.K) ** 2, | ||||||||||||||
| band_center=get_frequency(input_map.frequency), | ||||||||||||||
| band_center=get_frequency( | ||||||||||||||
| input_map.frequency, instrument=input_map.instrument | ||||||||||||||
|
||||||||||||||
| input_map.frequency, instrument=input_map.instrument | |
| input_map.frequency, | |
| instrument=input_map.instrument, | |
| arr=input_map.array, |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The arr parameter is not being passed to get_fwhm, while it is being passed in other calls throughout the codebase (e.g., in force.py lines 149-153 and maps.py lines 86-90). For consistency and to support potential per-array FWHM values in the future, consider passing input_map.array as the arr parameter.
| beam_fwhm=get_fwhm(input_map.frequency, instrument=input_map.instrument), | |
| beam_fwhm=get_fwhm( | |
| input_map.frequency, | |
| instrument=input_map.instrument, | |
| arr=input_map.array, | |
| ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When thumbnail_half_width is None in the config (line 41), passing it to SigmaClipBlindSearch will override the default value of 0.1 deg defined in the constructor (blind.py lines 44-46). This means the default won't be used when the config value is explicitly None. Consider using thumbnail_half_width=self.thumbnail_half_width or AstroPydanticQuantity(u.Quantity(0.1, "deg")) to ensure the default is applied when the config value is None.