Skip to content

Refactor plot_component_activations into standard script directory#404

Open
lee-goodfire wants to merge 1 commit intodevfrom
refactor/plot-component-activations
Open

Refactor plot_component_activations into standard script directory#404
lee-goodfire wants to merge 1 commit intodevfrom
refactor/plot-component-activations

Conversation

@lee-goodfire
Copy link
Contributor

Description

Move spd/scripts/plot_component_activations.py from a bare file into its own subdirectory (spd/scripts/plot_component_activations/), matching the convention used by all other scripts.

Changes:

  • argparsefire
  • Bare run_id arg → wandb_path: ModelPath
  • printlogger
  • Output saves to SCRIPT_DIR / "out" / run_id (co-located with the script)

Motivation and Context

This was the only script in spd/scripts/ that didn't follow the standard subdirectory pattern, causing its outputs to land in a different location from all other scripts.

How Has This Been Tested?

Smoke-tested plotting functions with synthetic data. Type checks pass.

Does this PR introduce a breaking change?

No, but the module path changes from spd.scripts.plot_component_activations to spd.scripts.plot_component_activations.plot_component_activations.

🤖 Generated with Claude Code

…ructure

Move from bare file (spd/scripts/plot_component_activations.py) into its own
subdirectory, matching the convention used by all other scripts. Switch from
argparse to fire, accept wandb_path instead of bare run_id, use logger instead
of print.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

2 participants