Skip to content

Reformat long lines to improve code readability#10

Merged
stevevanhooser merged 1 commit into
claude/add-python-porting-guide-emxajfrom
claude/fix-lint-formatting-nbwSK
Mar 10, 2026
Merged

Reformat long lines to improve code readability#10
stevevanhooser merged 1 commit into
claude/add-python-porting-guide-emxajfrom
claude/fix-lint-formatting-nbwSK

Conversation

@stevevanhooser
Copy link
Copy Markdown
Contributor

Summary

This PR reformats several long lines across the codebase to improve readability and maintain consistent code style. The changes involve collapsing multi-line expressions onto single lines where appropriate.

Key Changes

  • Error messages: Consolidated multi-line ImportError messages in src/ndi/fun/plot.py (3 occurrences in bar3(), multichan(), and stimulusTimeseries() functions)
  • Boolean expressions: Collapsed multi-line boolean mask expressions into single lines for improved readability
  • List comprehensions: Reformatted list comprehension for tick positions calculation
  • Conditional expressions: Simplified ternary operator expressions by placing them on single lines
  • Function calls: Consolidated long function call arguments onto single lines in test files

Implementation Details

All changes maintain the exact same functionality and logic—this is purely a formatting/style improvement. The modifications follow Python's line-length conventions by removing unnecessary line breaks while keeping code readable and maintainable.

https://claude.ai/code/session_014koNTAiN4GCfCArsHWxnDW

@stevevanhooser stevevanhooser merged commit 5d013ee into claude/add-python-porting-guide-emxaj Mar 10, 2026
@stevevanhooser stevevanhooser deleted the claude/fix-lint-formatting-nbwSK branch March 10, 2026 19:13
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