From 6a1938e7dd1cd309650d4ccd83efb7e1ce4133f0 Mon Sep 17 00:00:00 2001 From: andrewgsavage Date: Tue, 11 Jun 2024 22:45:21 +0100 Subject: [PATCH] dimensionless --- pint/delegates/formatter/_compound_unit_helpers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pint/delegates/formatter/_compound_unit_helpers.py b/pint/delegates/formatter/_compound_unit_helpers.py index 2bef3faa8..01e71d896 100644 --- a/pint/delegates/formatter/_compound_unit_helpers.py +++ b/pint/delegates/formatter/_compound_unit_helpers.py @@ -254,9 +254,7 @@ def prepare_compount_unit( out = unit._units.items() else: out = unit - print(out) - if len(out) == 0 and not "~" in spec: - out = {"dimensionless": 1}.items() + # out: unit_name, unit_exponent if "~" in spec: