Skip to content

style: Apply black format#907

Closed
janickm wants to merge 1 commit intonerfstudio-project:mainfrom
janickm:dev/janickm/push-oyvorspzklmu
Closed

style: Apply black format#907
janickm wants to merge 1 commit intonerfstudio-project:mainfrom
janickm:dev/janickm/push-oyvorspzklmu

Conversation

@janickm
Copy link
Copy Markdown
Collaborator

@janickm janickm commented Mar 24, 2026

This pull request mainly focuses on improving code readability and formatting across several files, primarily by reformatting long lines and function arguments for better clarity. No functional or behavioral changes are introduced.

Formatting and readability improvements:

  • Reformatted long type annotations and default assignments for render_mode and colormap in the GsplatRenderTabState class to be more concise and readable in both examples/gsplat_viewer.py and examples/gsplat_viewer_2dgs.py. [1] [2]
  • Reformatted assignments in the _after_render method to use single-line expressions with parentheses in both examples/gsplat_viewer.py and examples/gsplat_viewer_2dgs.py. [1] [2]
  • Reformatted multi-line assignments and function calls for better readability in gsplat/compression/png_compression.py, gsplat/cuda/_lidar.py, and tests/test_2dgs.py. [1] [2] [3]
  • Converted abstract method definitions to single-line format in gsplat/cuda/_torch_cameras.py.
  • Added a blank line for consistency in gsplat/cuda/_torch_lidars.py.
  • Added a trailing comma for argument consistency in tests/test_cameras.py.

@janickm
Copy link
Copy Markdown
Collaborator Author

janickm commented Mar 24, 2026

[looks like I used a wrong black version locally - closing]

@janickm janickm closed this Mar 24, 2026
@janickm janickm deleted the dev/janickm/push-oyvorspzklmu branch March 24, 2026 13:54
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