From 13c033c5e83ca10927241c1d780d9b3b659a4161 Mon Sep 17 00:00:00 2001 From: Christoph Klein Date: Fri, 20 Jun 2014 15:30:20 -0500 Subject: [PATCH] Delete Converter.py --- intermol/Converter.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 intermol/Converter.py diff --git a/intermol/Converter.py b/intermol/Converter.py deleted file mode 100644 index 64ca1d66..00000000 --- a/intermol/Converter.py +++ /dev/null @@ -1,15 +0,0 @@ -import intermol.unit as units - -def convert_units(arg, unit): - """Checks compatibility and converts units using simtk.units package - - Args: - arg (Quantity): quantity to be converted - unit (Unit): Unit to be converted to - - Returns: - arg (Quantity): Quantity scaled to the new unit - """ - conversionFactor = (arg.unit).conversion_factor_to(unit) - arg = arg * conversionFactor - return arg._value * unit