Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Fix pond force unit definition - #275

Merged
apdavison merged 1 commit into
python-quantities:masterfrom
loaff123:fix/quantities-44
Oct 14, 2026
Merged

apdavison merged 1 commit into
python-quantities:masterfrom
loaff123:fix/quantities-44

Conversation

@loaff123

@loaff123 loaff123 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #44.

The pond definition uses g_0 * kg, so one pond converts to 9.80665 N. A pond is one gram-force, or 0.00980665 N. Change the mass factor to gram while preserving its name, p symbol, and ponds alias.

Add a changelog entry and coverage for SI conversion, arrays, names, force dimensionality, and unchanged gram-force/kilogram-force conversions. This deliberately corrects existing pond conversions by a factor of 1,000.

Validation rerun on Windows 11 / Python 3.11.9 / NumPy 2.4.6:

  • python -m pytest -q: 186 passed, 3 expected failures, 3 subtests passed.
  • Final affected unit suite after discarding a generated constants timestamp: 10 passed, 3 subtests passed.
  • python -m doctest README.rst: passed.
  • A representative new regression fails against the unchanged upstream base with the original 1,000-fold error.
  • git diff --check: passed.

AI assistance was used to prepare and verify this patch. The archived package's wider Linux/interpreter/build checks were not rerun here. This PR is ready for maintainer review; upstream CI remains to be assessed.

@loaff123
loaff123 marked this pull request as ready for review October 2, 2026 09:03
@apdavison
apdavison merged commit 6c5265d into python-quantities:master Oct 14, 2026
58 checks passed
@apdavison

Copy link
Copy Markdown
Contributor

Thanks for this. Do you think it makes sense to add kilopond?

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.

Wrong definition of force unit "pond"

2 participants