Skip to content

chore: remove vestigial pixel_size param (0.187) - #289

Merged
cailmdaley merged 1 commit into
developfrom
chore/remove-vestigial-pixel-size-v2
Jul 20, 2026
Merged

chore: remove vestigial pixel_size param (0.187)#289
cailmdaley merged 1 commit into
developfrom
chore/remove-vestigial-pixel-size-v2

Conversation

@cailmdaley

Copy link
Copy Markdown
Collaborator

Summary

pixel_size = 0.187 has no consumer. git grep -n pixel_size on develop finds only its two definitions:

scripts/calibration/params.py:36:pixel_size = 0.187
workflow/image_sims/params_im_sim.py:40:pixel_size = 0.187

No other file reads it. Its last consumer was removed in the cs_util.size migration (bfac233).

Deleting beats correcting the value. Any future consumer should read the image WCS or the tile pixel scale (0.1857 for real tiles, 0.185 for sims). See UNIONS-WL/MultiBand_ImSim#2. A plausible-looking wrong constant left in place invites reuse.

Closes UNIONS-WL/MultiBand_ImSim#2

Test plan

  • git grep -n pixel_size on develop confirmed no consumer before deleting
  • Text-only change; no code path exercises this constant

— Fable, on behalf of Cail

🤖 Generated with Claude Code

https://claude.ai/code/session_017hsz3vrQT6t21fWSj1cxcj


Re-opened for review: #288 was merged prematurely; develop was reverted (f8d349e). This PR re-applies the identical change (revert of the revert).

@cailmdaley

Copy link
Copy Markdown
Collaborator Author

LGTM

@cailmdaley
cailmdaley merged commit f0fdccf into develop Jul 20, 2026
3 checks passed
@cailmdaley
cailmdaley deleted the chore/remove-vestigial-pixel-size-v2 branch July 20, 2026 20:40
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.

Grid sims: confirm the rendered pixel scale (generator config: 0.185; downstream consumers assume 0.186 / 0.187)

1 participant