From 408b9e1f44d78aab9983deaa18cf61cbc5cbec27 Mon Sep 17 00:00:00 2001 From: Diego Prada Date: Tue, 6 Jul 2021 17:04:12 -0500 Subject: [PATCH] Bug fixed. Having simtk.unit is not required. --- pyunitwizard/configure/configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyunitwizard/configure/configure.py b/pyunitwizard/configure/configure.py index 21393e2..b258d52 100644 --- a/pyunitwizard/configure/configure.py +++ b/pyunitwizard/configure/configure.py @@ -8,7 +8,8 @@ libraries = ['pint', 'simtk.unit'] parsers = ['pint', 'simtk.unit'] -found = { ii: find_spec(ii) is not None for ii in libraries} +_aux_dict_modules = {'pint':'pint', 'simtk.unit':'simtk'} +found = { ii: find_spec(_aux_dict_modules[ii]) is not None for ii in libraries} def reset():