Skip to content

Fix negative zero in q-point console output - #110

Merged
Tingliangstu merged 1 commit into
codex/pysed-3.0-architecturefrom
codex/fix-qpoint-negative-zero
Nov 9, 2026
Merged

Tingliangstu merged 1 commit into
codex/pysed-3.0-architecturefrom
codex/fix-qpoint-negative-zero

Conversation

@Tingliangstu

Copy link
Copy Markdown
Collaborator

What changed

  • Use a shared four-decimal formatter for path endpoints, reduced q-point lists, and calculation progress.
  • Display rounded -0.0000 as 0.0000; preserve other negative values and all numerical arrays.

What this improves

  • Remove misleading negative-zero coordinates from terminal output consistently.

Validation

  • Direct display checks passed for signed zero, small negative values around the rounding boundary, negative coordinates, q-path output, progress output, and unchanged input bytes.
  • Focused pytest run: 28 passed, 1 failed. The native-thread-limit test (test_persistent_workers_keep_native_thread_limits) also fails on the unchanged base commit in this local environment.
  • git diff --check passed.

@Tingliangstu
Tingliangstu merged commit 0260b66 into codex/pysed-3.0-architecture Nov 9, 2026
10 of 16 checks passed
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