Skip to content

chore: remove vestigial pixel_size param (0.187)#288

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

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

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

pixel_size = 0.187 has had no consumer since the cs_util.size
migration (bfac233). It is also not the tile scale: 0.187 is the
MegaCam center-of-field native scale, not the tile scale used
downstream (real tiles: 0.1857; sims: 0.185 — see
UNIONS-WL/MultiBand_ImSim#2).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hsz3vrQT6t21fWSj1cxcj
@cailmdaley
cailmdaley merged commit 016c331 into develop Jul 19, 2026
3 checks passed
cailmdaley added a commit that referenced this pull request Jul 20, 2026
…-pixel-size"

This reverts commit 016c331, reversing
changes made to f21e31e.
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