Skip to content

refactor: remove unused should_profile and profile_log_likelihood_function#1208

Merged
Jammy2211 merged 1 commit intomainfrom
feature/remove-profiling
Apr 13, 2026
Merged

refactor: remove unused should_profile and profile_log_likelihood_function#1208
Jammy2211 merged 1 commit intomainfrom
feature/remove-profiling

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Remove the should_profile config option and Analysis.profile_log_likelihood_function method. The config was always false and the method was never overridden in any downstream project (PyAutoArray, PyAutoGalaxy, PyAutoLens). Also removes the dead call from the autofit_workspace tutorial and cleans up should_profile from all workspace config files.

Follow-up to #1205.

API Changes

  • Analysis.profile_log_likelihood_function removed — was a no-op stub, never overridden
  • should_profile config option removed from general.yaml profiling section
  • NonLinearSearch.should_profile attribute removed

See full details below.

Test Plan

  • All 1205 existing tests pass (pytest test_autofit -x)
  • Workspace config files cleaned (all should_profile lines removed)
Full API Changes (for automation & release notes)

Removed

  • Analysis.profile_log_likelihood_function(paths, instance) — unused profiling hook
  • NonLinearSearch.should_profile — bool attribute from config
  • SearchUpdater.__init__ should_profile parameter
  • general.yaml profiling.should_profile config key

Migration

No migration needed — the feature was always disabled (false) and never overridden.

🤖 Generated with Claude Code

…ction

The profiling config option was always false and the method was never
overridden in any downstream project. Remove the dead code path from
SearchUpdater, NonLinearSearch, and Analysis.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 6bc2801 into main Apr 13, 2026
2 checks passed
@Jammy2211 Jammy2211 deleted the feature/remove-profiling branch April 13, 2026 10:39
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.

1 participant