Skip to content

Remove unused parameters and dead code from the decommutator - #67

Merged
namurphy merged 1 commit into
PlasmaPy:mainfrom
namurphy:remove-commented-out-code
Oct 7, 2026
Merged

namurphy merged 1 commit into
PlasmaPy:mainfrom
namurphy:remove-commented-out-code

Conversation

@namurphy

@namurphy namurphy commented Oct 6, 2026

Copy link
Copy Markdown
Member

Cleans up private helper functions in src/pyfaradaycup/decommutator/.

  • Removes unused parameters from private functions (verbose, ptp, and ccsds_head), along with their docstring entries and call site arguments.
  • Removes unreachable code after raise statements, unused variables (npackets, scet_exp, foo), and commented-out code, including the old versioned skeleton file search in _get_newest_skeleton.
  • _cdf35e_35f now includes the failing key in its RuntimeError message, instead of raising a bare RuntimeError followed by unreachable logging.
  • _cdf35e_35f keeps its verbose parameter, even though it is now unused, because main calls each CDF writer with verbose=verbose. Without it, the resulting TypeError would be caught by a bare except and only logged.
  • The first line written to the log file is now filename = swp_spc_l02l1.py instead of scriptname = swp_spc_l02l1.py.
  • Removes ruff:ignore suppressions that no longer apply.

🤖 Generated with Claude Code

Remove unused verbose, ptp, and ccsds_head parameters from private
helper functions, along with unreachable code after raise statements,
unused variables, and commented-out code. Keep verbose on _cdf35e_35f
so that main can call each CDF writer with the same arguments, and
include the failing key in its RuntimeError message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@namurphy
namurphy merged commit 50ca5b3 into PlasmaPy:main Oct 7, 2026
15 checks passed
@namurphy
namurphy deleted the remove-commented-out-code branch October 7, 2026 00:00
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