From f11b78a8fc20862f694c0004f868f650a07e7dc3 Mon Sep 17 00:00:00 2001 From: SPKorhonen Date: Wed, 12 Jun 2024 13:45:45 +0300 Subject: [PATCH 1/4] =?UTF-8?q?Add=20alternative=20=20=E2=84=93=20for=20li?= =?UTF-8?q?ter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pint/default_en.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pint/default_en.txt b/pint/default_en.txt index 45f241f18..faa0a6791 100644 --- a/pint/default_en.txt +++ b/pint/default_en.txt @@ -221,7 +221,7 @@ hectare = 100 * are = ha # Volume [volume] = [length] ** 3 -liter = decimeter ** 3 = l = L = litre +liter = decimeter ** 3 = l = L = ℓ = litre cubic_centimeter = centimeter ** 3 = cc lambda = microliter = λ stere = meter ** 3 From aab73a9fb821b4163280c05ec43b879a2d46715d Mon Sep 17 00:00:00 2001 From: SPKorhonen Date: Wed, 12 Jun 2024 13:48:43 +0300 Subject: [PATCH 2/4] =?UTF-8?q?Add=20test=20for=20=E2=84=93=20as=20alt=20f?= =?UTF-8?q?or=20litre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pint/testsuite/test_issues.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pint/testsuite/test_issues.py b/pint/testsuite/test_issues.py index 2a0b7edf6..6d51aa5c5 100644 --- a/pint/testsuite/test_issues.py +++ b/pint/testsuite/test_issues.py @@ -403,6 +403,9 @@ def test_micro_creation_U03bc(self, module_registry): def test_micro_creation_U00b5(self, module_registry): module_registry.Quantity(2, "µm") + def test_micro_creation_U2113(self, module_registry): + module_registry.Quantity(2, "ℓ") + @helpers.requires_numpy def test_issue171_real_imag(self, module_registry): qr = [1.0, 2.0, 3.0, 4.0] * module_registry.meter From c86b6a197ade65ea04beed06d89cb52172c5d459 Mon Sep 17 00:00:00 2001 From: SPKorhonen Date: Wed, 12 Jun 2024 13:49:30 +0300 Subject: [PATCH 3/4] Update CHANGES --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index e3a1b7ad0..1a6394040 100644 --- a/CHANGES +++ b/CHANGES @@ -4,7 +4,7 @@ Pint Changelog 0.25 (unreleased) ----------------- -Nothing added yet. +Added ℓ as alternative for liter 0.24 (2024-06-07) From 081a3715bee8c6e6bfa2debc87c907797be35bca Mon Sep 17 00:00:00 2001 From: andrewgsavage Date: Mon, 8 Jul 2024 15:01:59 +0100 Subject: [PATCH 4/4] Update test_issues.py --- pint/testsuite/test_issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pint/testsuite/test_issues.py b/pint/testsuite/test_issues.py index 19a53dad6..760b886f7 100644 --- a/pint/testsuite/test_issues.py +++ b/pint/testsuite/test_issues.py @@ -408,7 +408,7 @@ def test_micro_creation_U03bc(self, module_registry): def test_micro_creation_U00b5(self, module_registry): module_registry.Quantity(2, "µm") - def test_micro_creation_U2113(self, module_registry): + def test_liter_creation_U2113(self, module_registry): module_registry.Quantity(2, "ℓ") @helpers.requires_numpy