# tools/ Small cross-branch comparison utilities for cosmicfishpie, moved here from an untracked `shared-tools/` directory that lived alongside the git worktrees on a development machine (not part of the cosmicfishpie repo itself, since it compares *across* branches rather than living inside one). ## compare_photo_fisher.sh / compare_photo_fisher.py Run the same photometric Fisher computation (WL+GCph, symbolic backend, `Euclid-Photometric-ISTF-Pessimistic`, LCDM) in two cosmicfishpie git worktrees, then: - compare the resulting Fisher matrix, its inverse, and parameter names for numerical equivalence, and - report a wall-clock / compute-time speedup between the two. Usage: ```bash ./compare_photo_fisher.sh [branch-a] [branch-b] # defaults: main perf-v2 ``` Assumes each branch is checked out as a sibling git worktree named `cosmicfishpie-` next to this repo (e.g. `cosmicfishpie-main`, `cosmicfishpie-perf-v2`, `cosmicfishpie-symbolic_overhaul`). Override the root with `WORKTREE_ROOT=/path/to/worktrees`, or point a single label at an arbitrary path with `WORKTREE_